Skip to content

Commit

Permalink
Merge pull request #331 from the-hideout/deployments-config
Browse files Browse the repository at this point in the history
codify railway deployment config for added stability
  • Loading branch information
GrantBirki authored Dec 20, 2024
2 parents d926fcb + 6710ad1 commit 684933e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ COPY modules/ modules/
COPY translations/ translations/
COPY deploy-commands.mjs .

ENTRYPOINT [ "node" ]
CMD [ "index.mjs" ]

CMD ["node", "index.mjs"]
22 changes: 22 additions & 0 deletions railway.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "Dockerfile"
},
"deploy": {
"runtime": "LEGACY",
"numReplicas": 1,
"sleepApplication": false,
"multiRegionConfig": {
"us-west1": {
"numReplicas": 1
}
},
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 8,
"healthcheckPath": null,
"healthcheckTimeout": null,
"cronSchedule": null
}
}

0 comments on commit 684933e

Please sign in to comment.