failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: ex
while deploying client on railway
Linux
17 Replies
Hi @Dheeraj. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry to hear that you're having trouble deploying your client on Railway. Based on the knowledge sources provided, it's hard to pinpoint the exact cause of the issue. However, here are a few general steps you can follow when deploying your Wasp app to Railway:
1. Run
wasp build
in your project directory to build your Wasp project.
2. Navigate to the .wasp/build
directory and run railway up
to deploy the server.
3. Repeat the steps in the .wasp/build/web-app
directory to deploy the client.
If you're still encountering the error, it might be related to your npm run build
command. One of the Github issues (https://github.com/wasp-lang/wasp/issues/1232) mentioned a similar problem where the tsc
command in web-app/package.json
file was causing Docker deployment issues due to typing issues. The temporary solution was to disable tsc
in the build
command, but the issue should ideally be handled by making sure the Docker environment is aware of types.
Here's how the scripts
section in package.json
looked after the change:
If the problem persists, I recommend opening an issue on the Wasp Github page (https://github.com/wasp-lang/wasp/issues) or asking for help in the Wasp Discord community (https://discord.com/channels/686873244791210014/1217758453326680095).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Dheeraj, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Did you modify the Dockerfile that Wasp generates for the server? π
@miho docker file content
FROM pierrezemb/gostatic
CMD [ "-fallback", "index.html" ]
COPY ./dist/ /srv/http/
@kapa.ai
Let me check the knowledge base for you. One moment! :books:
Sorry @Dheeraj, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
@miho
@Dheeraj Please give us more info!
Is this first time you are deployiing your project to Fly, and that it isn't working?
Is tehre anything unusual in your project (like modifying your DOckerfile, as Miho asked)?
What have you tried to do to fix this?
Which command did you use to deploy to fly?
What you posted regarding Docker seems to be the Docker that Wasp genreated for the client (not server). SO you haven't touched the orgiainl Dockerfiles?
@martinsos
i am deploying the client on railway...deployed the server successfully on railway. and i havent touched the original docker file ...btw at what location is the server dockerfile
Wohooo @Dheeraj, you just became a Waspeteer level 1!
@kapa.ai
Let me check the knowledge base for you. One moment! :books:
Sorry @Dheeraj, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
@miho
@Dheeraj which command did you use to deploy it?
Was it working at any point before?
nvm deployed suceesfully...thanks
@Dheeraj is the app live? would love to see it if you're up for sharing π
well is was my first basic app
https://profound-consideration-production.up.railway.app/
nice, it works! π
Great! @Dheeraj do you know what was the problem at the end?