https://shuttle.rs/ logo
Join Discord
Powered by
# synth-help
  • h

    handsome-computer-86214

    08/26/2022, 2:32 PM
    Sorry, can't test locally right now. But the code looks okay πŸ‘ Don't know a huge amount about the log levels stuff
  • h

    handsome-computer-86214

    08/26/2022, 2:33 PM
    How have I not heard about the log crate before lol, its about to cross 100 mil downloads
  • m

    mammoth-laptop-15689

    08/26/2022, 2:35 PM
    i still think we should not be manually parsing the RUST_LOG env var and just let the log crate do it's own work
  • m

    mammoth-laptop-15689

    08/26/2022, 2:35 PM
    https://docs.rs/env_logger/0.9.0/env_logger/#filtering-results
  • m

    mammoth-laptop-15689

    08/26/2022, 2:36 PM
    RUST_LOG is very more versatilie than this, it can support regex filters, submodules, etc.
  • m

    mammoth-laptop-15689

    08/26/2022, 2:42 PM
    once u init env_logger (by just running one function) you enable logging in your whole impl, people can also change the logging impl themselves too
  • m

    mammoth-laptop-15689

    08/26/2022, 2:43 PM
    it will parse the RUST_LOG env variable according to what the person has set, IDEs sometimes keep changing the env variable to point it to specific modules so they can allow debugging easier in larger codebases
  • q

    quaint-caravan-85536

    08/26/2022, 3:13 PM
    The reason we don't use
    env_logger
    is because we have our own logger to capture and store the logs in production. I could potentially check if it possible to access the
    enabled()
    method (hoping it calls something) directly from our implementation to keep them the same though...
  • m

    mammoth-laptop-15689

    08/26/2022, 4:30 PM
    my previous workplace used https://github.com/getsentry/sentry-rust, works really good in production, you can look into this if you want, we used a fork and had some changes done to it to make it work with our infrastructure
  • l

    limited-jordan-8330

    09/01/2022, 7:56 PM
    Has anything changed on the way we test local examples?
    curl --header "Host: {app}.localhost.local" localhost:8000/hello
    seems to give me a "could not find service for host: hello-world-axum-app.localhost.local" now where it was working fine before. I'm wondering if something else changed when we did the Makefile changes?
  • l

    limited-jordan-8330

    09/01/2022, 8:39 PM
    It's ok, sorted it. Host now needs the full shuttle.rs URL instead of the localhost one now. Panic over πŸ™‚
  • q

    quaint-caravan-85536

    09/02/2022, 5:48 AM
    The new Makefile seems to set it to
    unstable.shuttleapp.rs
    actually https://github.com/shuttle-hq/shuttle/blob/b43536a857190620a1414a60d4d0e54d865bc165/Makefile#L45
  • l

    limited-jordan-8330

    09/02/2022, 9:36 AM
    I take it 'unstable' is still the expected behaviour? (before I update the docs)
  • q

    quaint-caravan-85536

    09/02/2022, 9:40 AM
    Nope, more of a warning when we automatically spin this up in a dev environment πŸ˜…
  • b

    brave-crowd-57431

    09/04/2022, 12:51 PM
    hey there, my project (
    rapla-to-ics
    ) which previously worked wonderfully has been stuck on
    BUILT
    as of today and the url throws either a 500 status code or "could not find service for host" (see screenshots). Any help would be appreciated :)
  • b

    brave-crowd-57431

    09/04/2022, 12:56 PM
    (for reference i haven't changed anything about the app, this happened completely out of nowhere)
  • q

    quaint-caravan-85536

    09/05/2022, 9:23 AM
    Another project crashed the server... I'm not quite sure why (yet), but the server is back online now
  • d

    damp-photographer-72960

    09/17/2022, 5:19 PM
    Hello! πŸ‘‹ I discovered Shuttle this morning and had a question. Is it possible to deploy projects that use
    sqlx
    with SQLite?
  • f

    freezing-dream-11543

    09/18/2022, 8:49 AM
    Hi, welcome! Shuttle doesn't support SQLite yet, the currently supported databases are PostgreSQL, MongoDB and three flavors of AWS RDS (PostgreSQL, MySQL and MariaDB).
  • d

    damp-photographer-72960

    09/18/2022, 2:35 PM
    Ok got it, thanks! πŸ™
  • f

    faint-lock-99532

    09/18/2022, 3:00 PM
    Why do you want SQLite specifically over using something like PG? Just curious to see how we can help out πŸ™‚
  • d

    damp-photographer-72960

    09/18/2022, 3:28 PM
    Mostly because it was simpler during development. To some degree I think the portability might be nice, easy to grab a backup when it’s a file. The thing I am building will never need to scale, and it’s mostly a simple technical demo.
  • d

    damp-photographer-72960

    09/18/2022, 3:29 PM
    There’s a chance it might end up living longer than I expect though, so it might be worth using PG.
  • f

    faint-lock-99532

    09/18/2022, 4:02 PM
    I see thank you. Are you porting it to shuttle or are you building from scratch on shuttle? SQLite is a woefully underestimated database.
  • d

    damp-photographer-72960

    09/18/2022, 4:03 PM
    I would be porting to Shuttle. App is mostly built.
  • f

    faint-lock-99532

    09/18/2022, 4:03 PM
    I see
  • f

    faint-lock-99532

    09/18/2022, 4:04 PM
    I think this has already popped up and will keep popping up. Perhaps worth adding SQLite to our scopes @adamant-greece-18186 ?
  • a

    adamant-greece-18186

    09/18/2022, 6:13 PM
    Indeed! Definitely adding it.
  • d

    damp-photographer-72960

    09/18/2022, 6:49 PM
    I'll keep an eye out for it. πŸ‘€ Shuttle seems like a cool project, and I'd be down to try it!
  • e

    echoing-monitor-58525

    09/22/2022, 11:41 AM
    Old thread, but good news to support SQL lite: https://fly.io/blog/introducing-litefs/