Closed jonasmatuliauskas closed 1 year ago
Hey @jonasmatuliauskas !
I don't have enough experience with Docker or Fly.io to comment on that. I can see though that it's having issues at build, so you can use the ARG
to pass almost everything except for MONGO_URL
and SHOPIFY_APP_SECRET
, which isn't required at build time.
Though I did search a little and the recommendation has been to use a docker-compose.yml
file, and ChatGPT also seems to be recommending the same. I'm gonna keep this issue open while I play around with this over the weekend, unless you find a setup that works.^
Where do you recommend deploy an app? Heroku?
Yep! I've deployed for years on Heroku, behind a Cloudflare cache layer
It's enough to get success deploy. Thank you!
I have one more question about:
https://ngrokurl.io/auth?shop=mystorename.myshopify.com
https://github.com/kinngh/shopify-node-express-mongodb-app/blob/main/docs/SETUP.md
How it will work in the end? I mean, I will build an app based on your boilerplate and submit it for review and approval for Shopify, to be published and accessible for everyone, and for them (Shopify during review and for everyone), it works normally or will I have to give them information on how to install it? Your approach is not default to start an installation, by default it has to be installed using this button:
So what's broken is the dev mode. In dev mode, Vite and Express run on different ports and using Ngrok you can expose only one. In prod mode, we're only using one port, which is controlled by env's PORT
variable, meaning you can do a normal install using select store when running in prod mode by running npm run start
, so no, you don't have to provide installation instructions to anyone as long as you're running in production mode^
You need to remove .env from Docker Ignore file
Hello, Harshdeep Singh Hura 👋
I want to upload an app to fly.io, but get an error:
In the code
process.env.<...>
can't access values unless I set it in theDockerfile
. Is it safe?