Fityan
Fityan
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
For now, I can get around this by adding RUN npm run db:migrate in the Dockerfile. But I hope Railway can provide a better way in the future.
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
Let's say I don't change the railway custom start command, instead I change the script command in package.json like this:
"scripts": {
"db:migrate": "tsx prisma/migrate.ts",
"prestart": "npm run db:migrate",
"start": "node dist/src/main",
}
"scripts": {
"db:migrate": "tsx prisma/migrate.ts",
"prestart": "npm run db:migrate",
"start": "node dist/src/main",
}
Will the prestart be executed automatically before start?
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
It is works well when I run it with docker compose in my local. https://github.com/fityannugroho/idn-area/blob/prod/railway/docker-compose.yml
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
NPM_CONFIG_UPDATE_NOTIFIER=false works, no more npm notice, but it seems that npm run start:prod command was never executed after the migration is completed.
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"!/*.md"
],
"dockerfilePath": "Dockerfile"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run db:migrate;npm run start:prod",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"!/*.md"
],
"dockerfilePath": "Dockerfile"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run db:migrate;npm run start:prod",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
NPM_CONFIG_UPDATE_NOTIFIER right? Let me try
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
Sure
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
Oh I thought you were the admin 😅
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
Yeah, It works well.
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"!/*.md"
],
"dockerfilePath": "Dockerfile"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run start:prod",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"!/*.md"
],
"dockerfilePath": "Dockerfile"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run start:prod",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
Yes, I have tried it
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
I have tried your suggestions. First, I think NPM_CONFIG_UPDATE_NOTIFIE=false doesn't work because the npm notice still exists (see the screenshot). Second, I also change && with ; and it seems not worked too.
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"!/*.md"
],
"dockerfilePath": "Dockerfile"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run db:migrate;npm run start:prod",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"watchPatterns": [
"!/*.md"
],
"dockerfilePath": "Dockerfile"
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run db:migrate;npm run start:prod",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
29 replies
RRailway
Created by Fityan on 12/24/2023 in #✋|help
`npm notice` stop the deploy
3380be57-899c-4fa1-8a57-1724b9780dd7
29 replies
RRailway
Created by Fityan on 6/13/2023 in #✋|help
Account banned: multiple accounts
Okay I will note that
15 replies
RRailway
Created by Fityan on 6/13/2023 in #✋|help
Account banned: multiple accounts
Thanks for your help
15 replies
RRailway
Created by Fityan on 6/13/2023 in #✋|help
Account banned: multiple accounts
Oh right. I just checked my dashboard
15 replies
RRailway
Created by Fityan on 6/13/2023 in #✋|help
Account banned: multiple accounts
Okay, I will wait for that. Thanks for your response
15 replies
RRailway
Created by Fityan on 6/13/2023 in #✋|help
Account banned: multiple accounts
How long does it usually take?
15 replies
RRailway
Created by Fityan on 6/13/2023 in #✋|help
Account banned: multiple accounts
3380be57-899c-4fa1-8a57-1724b9780dd7
15 replies