suzumejakku
suzumejakku
RRailway
Created by suzumejakku on 7/31/2023 in #✋|help
Pricing for a randomly used platform
Hi, Apologies if the same kind of question has been asked already. I have tried Railway in the past few months and am quite convinced that I will use that service, as in move from Heroku to Railway, in the future. I received the emails concerning the new pricing plans but still have one concern. On Heroku, I have two distinct deployments, one for prod and another one for QA. The prod is obviously always up, while the QA is only up when necessary. When I do not use the QA platform, Heroku lets me turn off the dynos I don't need, and delete the Postgres add-on; and this allows me to pay 0$. I usually turn everything on when I have a couple of days of tests on the QA platform every month, which leads to a very small amount to pay (a couple of dollars per month). Sometimes I do not use the QA platform for a month of two, which costs me 0$. It looks like the new pricing plan from Railway does not allow that, i.e. we have to pay at least the monthly plan ($5 for Hobby). Is this correct or is there a way to pay 0$ when the platform is not in use at all ?
8 replies
RRailway
Created by suzumejakku on 10/7/2022 in #✋|help
[RESOLVED] package.json's script, how to run 'prepare' and then build ?
In my package.json file, I use the script "prepare" to dynamically create a "version.ts" file (a simple file which export a constant with the version number read from the package.json's version itself) => "scripts": {
"prepare": "node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > ./app/javascript/sources/version.ts" } On Heroku, it works perfectly: the file "version.ts" is created on the fly upon deployment, and my app can import LIB_VERSION. However it does not on Railway.app; I get an error telling me that it cannot find "version.ts". Any idea why ? Many thanks !
23 replies