-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure how to deploy #29
Comments
same question here |
HI there. Please wait a moment for fixing and finding the way of it. (I always use this template with fly.io or gcp cloud run and works correctly. if you would like to use it soon, please considering to use these services) |
Hey guys, i found a way. Just compile the ts to js. In web/package.json add the following two commands:
Also you need to read the environment variables to shopify.ts like this:
If you run npm:serve dont forget to set your environement variables. |
how do you deploy it to gcp cloud run? The Dockerfile with the package.json from this repo fails too:
|
I did not work with gcp before , i am using railway.app which reads the dockerfile and builds and shipes a container. Are you not using the dockerfile ? |
Does
"serve": "cross-env NODE_ENV=production node index.ts"
cmd can be work on the host like Heroku? The web server couldn't read the ts file.The error log shown on Heroku is
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/index.ts
Because I use the Shopify Cli first then check this repo's relative configuration to setup the typescript on my app, so I'm not sure that did I miss any part about typescript compile setting. Should we add the
"postinstall": "tsc"
to produce the index.js file? Something like thisThe text was updated successfully, but these errors were encountered: