Python with Node
Hello,
We are having a bit of trouble providing a multi-service application that utilizes Node and Python on one of the services.
The issue is
nodenv
is failing to install and then failing the subsequent npm install
/build
steps.
Our nixpacks.toml
: https://github.com/litestar-org/litestar-fullstack/blob/main/nixpacks.toml
is there something we are missing?
GitHub
litestar-fullstack/nixpacks.toml at main ยท litestar-org/litestar-fu...
Litestar Fullstack Reference Application with Vue, Vite, SQLAlchemy, Docker, Task Queues, and more! - litestar-org/litestar-fullstack
Solution:Jump to solution
build works https://github.com/brody192/litestar-fullstack/commit/ff5743a9c1f6dc728cea86b483f567048cc86006
though im getting
No such command 'database'.
during runtime, any idea on that?...29 Replies
Project ID:
6f1f252f-a6f4-42ab-a5c7-6ba05c3f74de
6f1f252f-a6f4-42ab-a5c7-6ba05c3f74de
๐
going to attempt a deploy now
im getting
OSError: Could not find a suitable TLS CA certificate bundle
and thats a certi issue or whatever the package name isThe PR#101 is updating that package, I think each time they have an updated it breaks everyones stuff
indeed is does, but pr101 also has changes made to the nixpacks.toml file, can you revert those to the same nixpacks.toml in main?
Hmm it shouldnt anymore, i reverted them after testing
okay cool, looking
its time for the sleep, i will check back in the am to see the news
Solution
build works https://github.com/brody192/litestar-fullstack/commit/ff5743a9c1f6dc728cea86b483f567048cc86006
though im getting
No such command 'database'.
during runtime, any idea on that?i think we can figure out that part :0. thanks! ๐
any questions on the changes I've made, since I did edit the litestar code and not just the nixpacks.toml
perhaps there's a better way to skip that npm build assets function, since node is installed and the frontend is built in nixpacks, it both doesn't make sense to run that stuff again, and running it again causes errors
thank you. going to test it after my standup
sounds good!
Do you happen to know why redis and postgres are having these issues? Not sure if this is something to do with the volumes or the way i set up the services
are these from the standard deployments of the databases?
+ New
> database > postgres / redisyeah
the only thing ive done is fix the first error on each (missing passwords)
deleting them and the volumes and recreating seems to have worked this time actually
yeah was just gonna say, just deployed a postgres database and it worked
ty for your help again! ๐
wanted to ask you about the database scheme thing, your framework requires the
postgresql+asyncpg
scheme, but the databases from railway come with just postgresql
by default, do you plan to patch this away in your framework or update the database url in a template?Yeah i just hit that.. I am not sure. It's kindve lame to not be able to use the dynamic URLs as they would change quite often I think? Is there a way to make
${{Postgres.DATABASE_URL}}
use postgresql+asyncpg://
?if you plan to use a template, you can add a custom postgres service to your template and edit its
DATABASE_URL
and DATABASE_PRIVATE_URL
schemeahhh
when i say "postgres service" i dont mean this, you cant edit the variables on the built in postgres database, you would need to add a postgres database as a service to the template
to add an editable postgres service to your template you can use this https://bookmarklets.up.railway.app/service-embed/
I might be dumb, how do i use this? Am i putting the shortcode for a postgres template to add to my template, or am i using the shortcode of my template and then pulling it from somewhere else?
oh yeah, the 1st one. i was doing the 2nd
Oh man his is badass. I love railway ๐
``
dont give railway credit for that lol
i made it ๐
Oh man this is badass. I love Brody ๐
just be carefull, if you add a service you wont be able to remove it
and i cant make a bookmarklet to remove a service since there is no api to do so