R
Railway•16mo ago
ale

Reflex

Hi, someone deploy reflex.dev in railway? do you have a guide?
Solution:
sorry it took so long, have been busy and wanted to make sure the template was perfect! but here it is, at last https://railway.app/template/A5TaaV...
Jump to solution
19 Replies
Percy
Percy•16mo ago
Project ID: N/A
Brody
Brody•16mo ago
n/a looks cool, ill see what i can whip up later today started a bit late, but i got it up and running https://reflex.up.railway.app/ just the default app but its super late now, so ill write the readme and publish the template tomorrow afternoon
ale
aleOP•16mo ago
Thank you so much! please wait for that file. Thanks again.
Brody
Brody•16mo ago
tell me how you imagined a reflex to be deployed, would you prefer two services? one for the frontend and one for the backend, or a single service that encompasses both of them?
ale
aleOP•16mo ago
I understand more the philosophy of reflex as a single service that encompasses them all.
Brody
Brody•16mo ago
yes but reflex starts its frontend and backend on different ports, and you can only expose 1 port (443) per railway service
Solution
Brody
Brody•16mo ago
sorry it took so long, have been busy and wanted to make sure the template was perfect! but here it is, at last https://railway.app/template/A5TaaV
Brody
Brody•16mo ago
and a little ping for visibility since its been so long @ale
ale
aleOP•16mo ago
Thank you for this! It's a great help.
Brody
Brody•16mo ago
let me know if you have any troubles with it
el_magnifico
el_magnifico•13mo ago
@Brody you're awesome! Thanks for this
Brody
Brody•13mo ago
thank you 🙂
el_magnifico
el_magnifico•13mo ago
@Brody quick question - I'm getting this error on deployment. Did you see this at all when you were building the template?
11.33 Creating Production Build: 0% 0/9 0:00:00

-----

Dockerfile:30

-------------------

28 | # export phase

29 | COPY . /app/.

30 | >>> RUN reflex export --frontend-only --no-zip

31 |

32 | # caddy phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c reflex export --frontend-only --no-zip" did not complete successfully: exit code: 1



Error: Docker build failed
11.33 Creating Production Build: 0% 0/9 0:00:00

-----

Dockerfile:30

-------------------

28 | # export phase

29 | COPY . /app/.

30 | >>> RUN reflex export --frontend-only --no-zip

31 |

32 | # caddy phase

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c reflex export --frontend-only --no-zip" did not complete successfully: exit code: 1



Error: Docker build failed
Brody
Brody•13mo ago
is this a deployment of the unmodified template?
el_magnifico
el_magnifico•13mo ago
No, this is for a simple personal site - https://github.com/kamakaya/personal-site-reflex
GitHub
GitHub - kamakaya/personal-site-reflex
Contribute to kamakaya/personal-site-reflex development by creating an account on GitHub.
Brody
Brody•13mo ago
okay then would you mind opening a new #✋|help thread?
el_magnifico
el_magnifico•13mo ago
Okay - will do Just tried to deploy the unmodified template, and got the same error btw
Brody
Brody•13mo ago
ah okay, will be looking into this then, sorry about this (still make a new thread please)
el_magnifico
el_magnifico•13mo ago
Yup! Thanks again, Brody
Want results from more Discord servers?
Add your server