shuttle doesn't deploy with build.rs or .env
# help
f
Trying to set some compile time config to enable environment variables for sqlx, SMTP config and other stuff that I normally do. I would use shuttle secrets, but it's runtime only, and doesn't seem to support anything at build time. Would love an alternative, or for cargo shuttle to support more standard cargo features like .Env files, build scripts etc.
Oh, cargo's include files also aren't uploaded for build time, so any include_str! Stuff doesn't seem to work unless the include is a ".rs" file. That'd be great to fix too
For now I'm renaming all my static files e.g. schema.sql to src/schema.sql.rs It's a bit annoying but it works...
e
weird. I'm including schema files with include_str! and it's working just fine 🤔
are they somewhere outside of the project dir or something?
f
Nope. I've tried in the project root and in src and neither works. Hmmm... Maybe I should try reinstalling shuttle just in case. If it works on your machine it probably means we have different code not different luck 🙂
Thx btw
g