You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is probably not doable yet, but it's still left here for when it is.
The objective is to dockerize the whole project in a single container, both front end and back end, since deno can generate static files and rust can too, a single container should be enough to run the binaries and an nginx instance that has a configuration where / goes to the front end and /api gets rewritten to / but instead of sending the request to 5173 the server redirects that to 5174 which is the back end exposed port.
The backend binary requires one or more arguments, you can pass as many as you want of --source which are files with a JSON array in the following format
[
{
"source": "url to the source",
"headers": {} // all the headers in form of a javascript object for your source
}
]
The text was updated successfully, but these errors were encountered:
We are working on this in the Docker branch the docker builds and runs both services, but a bug referenced in #3 won't let the deploy continue, I decided to upload the sources, before making any change to the database the target must be prepared with cargo sqlx prepare, the .sqlx folder is checked into version control and there is a required API key before deploying which is the STRIPE_SECRET, you may pass it to docker-compose build before deploying.
Since this project contains that private key it shouldn't be published to a public registry, as it might affect that key security.
The many times this key "has been leaked" don't really matter as these test keys are reset every day, and about the database password which is my personal password doesn't really affect me since I only use that in local, development and so...
The deployment is solved, but the page doesn't handle environment variables well, in fact it is deployed at rlarndg.rustlang-es.org, except it is not working there.
This issue is probably not doable yet, but it's still left here for when it is.
The objective is to dockerize the whole project in a single container, both front end and back end, since deno can generate static files and rust can too, a single container should be enough to run the binaries and an nginx instance that has a configuration where
/
goes to the front end and/api
gets rewritten to/
but instead of sending the request to 5173 the server redirects that to 5174 which is the back end exposed port.The backend binary requires one or more arguments, you can pass as many as you want of
--source
which are files with a JSON array in the following formatThe text was updated successfully, but these errors were encountered: