W
Wasp-langβ€’4mo ago
Dheeraj

failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: ex

while deploying client on railway Linux
No description
17 Replies
kapa.ai
kapa.aiβ€’4mo ago
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:
"scripts": {
"start": "npm run validate-env && vite",
"build": "npm run validate-env && vite build",
"validate-env": "node -r dotenv/config ./scripts/validate-env.mjs"
},
"scripts": {
"start": "npm run validate-env && vite",
"build": "npm run validate-env && vite build",
"validate-env": "node -r dotenv/config ./scripts/validate-env.mjs"
},
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?
miho
mihoβ€’4mo ago
Did you modify the Dockerfile that Wasp generates for the server? πŸ˜„
Dheeraj
Dheerajβ€’4mo ago
@miho docker file content FROM pierrezemb/gostatic CMD [ "-fallback", "index.html" ] COPY ./dist/ /srv/http/ @kapa.ai
kapa.ai
kapa.aiβ€’4mo ago
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?
Dheeraj
Dheerajβ€’4mo ago
@miho
martinsos
martinsosβ€’4mo ago
@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?
Dheeraj
Dheerajβ€’4mo ago
@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
MEE6
MEE6β€’4mo ago
Wohooo @Dheeraj, you just became a Waspeteer level 1!
Dheeraj
Dheerajβ€’4mo ago
@kapa.ai
kapa.ai
kapa.aiβ€’4mo ago
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?
Dheeraj
Dheerajβ€’4mo ago
@miho
martinsos
martinsosβ€’4mo ago
@Dheeraj which command did you use to deploy it? Was it working at any point before?
Dheeraj
Dheerajβ€’4mo ago
nvm deployed suceesfully...thanks
matijash
matijashβ€’4mo ago
@Dheeraj is the app live? would love to see it if you're up for sharing πŸ˜„
Dheeraj
Dheerajβ€’4mo ago
matijash
matijashβ€’4mo ago
nice, it works! πŸ˜„
martinsos
martinsosβ€’4mo ago
Great! @Dheeraj do you know what was the problem at the end?
Want results from more Discord servers?
Add your server
More Posts