directly run backend without building
devcadotio
PROOP

2 years ago

is there a way i can have railway directly do pnpm dev and serve port 3000 instead of building beforehand?

Closed

23 Replies

devcadotio
PROOP

2 years ago

58f9c8d3-2d87-4177-90e5-828a7d37ad8b


2 years ago

like avoid running pnpm run build?


devcadotio
PROOP

2 years ago

yeah


2 years ago

gotcha, may i first inquire as to why you want to run dev and not maybe a production build?


devcadotio
PROOP

2 years ago

its only a preview environment and i have too many typeerrors i still need to fix


devcadotio
PROOP

2 years ago

and somehow cant figure out how to disable checking those on building


2 years ago

what framework?


2 years ago

i'd much prefer to help you come to a proper solution here, running a dev server is unstable and costly


2 years ago

CI=FALSE?


devcadotio
PROOP

2 years ago

express for backend


devcadotio
PROOP

2 years ago

wdym


2 years ago

Setting an environment variable named CI to False should ignore warnings. Not sure if it’s applicable here, but worth a shot


devcadotio
PROOP

2 years ago

Is that a railway or a npm feature?


2 years ago

neither


2 years ago

try setting TSC_COMPILE_ON_ERROR=true -


devcadotio
PROOP

2 years ago

1338229039264956569


2 years ago

did you try CI=false


devcadotio
PROOP

2 years ago

let me try


devcadotio
PROOP

2 years ago

failed


devcadotio
PROOP

2 years ago

same errors


devcadotio
PROOP

2 years ago

as above


devcadotio
PROOP

2 years ago

any other ideas?


2 years ago

nope, can you look into how to disable type checking with tsc, it would not be railway specific


Welcome!

Sign in to your Railway account to join the conversation.

Loading...