a year ago
you can find the repo here https://github.com/antbucc/PromptDeck
ⓘ Deployment information is only viewable by project members and Railway employees.
30 Replies
a year ago
The current railway.json you have is using made up syntax, please do not ask gpt how to write Railway related configurations as you will just end up worse off.
A railway.json or any config file can not be used to define your project setup, it can only be used to configure a few settings for a singular service.
Deploying your project would be a manual process, here are some rough steps -
Create new empty project
All actions after this are to be performed inside of the project just created.
Create database if needed
Create a new empty service, this will be your backend service
Name it, add a domain, setup variables, etc
Set the root directory to
/backend
Attach your GitHub repo
Create a new empty service, this will be your frontend service
Same idea, name it, domain, variables, etc
Set the root directory to
/frontend
Attach your GitHub repo
But as it stands you would deploy a react development server like this so you will need to set your react project up with a production grade web server for railway to run.
I've tried to make that as simple as possible, here's an example repo for a create react app -
https://github.com/brody192/create-react-app-starter
All you should need to do is copy it's nixpacks.toml and Caddyfile into your frontend folder and then you are good to start on the above instructions.
a year ago
I have added the two files you suggested to my frontend repo but when i deploy it I have errors. What should I do?
a year ago
Please provide the logs - https://bookmarklets.up.railway.app/log-downloader/
Along with screenshots of your project and setup.
a year ago
0.275 /bin/bash: line 1: npm: command not found
Jul 14 22:40:55
-----
Jul 14 22:40:55
Jul 14 22:40:55
Dockerfile:15
Jul 14 22:40:55
-------------------
Jul 14 22:40:55
13 | # build phase
Jul 14 22:40:55
14 | COPY . /app/.
Jul 14 22:40:55
15 | >>> RUN npm run build
Jul 14 22:40:55
16 |
Jul 14 22:40:55
17 |
Jul 14 22:40:55
-------------------
Jul 14 22:40:55
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127
Jul 14 22:40:55
Jul 14 22:40:55
Error: Docker build failed
a year ago
file attached
a year ago
it is enough or I need to send you other info?
a year ago
I am trying to copy paste here but does not work. is there any way to share with you ?
a year ago
but the error is the following:
Jul 14 22:40:55
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127
Jul 14 22:40:55
Jul 14 22:40:55
Error: Docker build failed
a year ago
i am trying to attach the file but does not work
a year ago
safari and chrome do not work
a year ago
no way o my God...also as guest
a year ago
I am trying again and again and no way to attach the file downloaded..can I send my email?
a year ago
what should I do to deploy the frontend? I am not commenting logs
a year ago
Have you set the correct root directory as per my instructions?
Please also remove the build and start commands you have set in the service settings.
a year ago
As previously mentioned, remove the build and start commands you have set in the service settings.
Status changed to Solved brody • 11 months ago
Status changed to Open antbucc • 11 months ago
10 months ago
Sorry dear...I tried to deploy the frontend part and I see the following error inspetting it
Uncaught Error: React Refresh runtime should not be included in the production bundle.
at ./node_modules/react-refresh/cjs/react-refresh-runtime.production.min.js (react-refresh-runtime.production.min.js:9:1)
at options.factory (react refresh:6:1)
at __webpack_require__ (bootstrap:22:1)
at fn (hot module replacement:61:1)
at ./node_modules/react-refresh/runtime.js (runtime.js:4:1)
at options.factory (react refresh:6:1)
at __webpack_require__ (bootstrap:22:1)
at fn (hot module replacement:61:1)
at ./node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js (ReactRefreshEntry.js:4:1)
at options.factory (react refresh:6:1)
10 months ago
Looks like you missconfigured something, but as that error wouldn't pertain to the platform I would recommend researching the error on sites like stack overflow.
10 months ago
Ok Thanks