I have successfully creates the new app with RUBY template and shopify cli
npm init @Shopify_77 [email removed] – --template=ruby
It can be started with the shopify cli command npm run dev however it starts rails with the rails development.rb config and with the dev database connected.
Also every time command is run it creates a tunnel to some cloudflare server.
The question is how do I start APP permanently (daemon) in production mode and without the tunnel? I have self-hosted app (just ruby on rails without heroku, dockers… etc)
If I try to start the rails app as usually like the cd web && rails s -e production -p 30XX -d the app is started the rails server in PROD mode with right database but it is completely unusable. Even the installation process fail
The logs says app die somewhere here obviously because install process did not fire and did not record to databaase the shopify_token
Started GET "/index.jsx"
Processing by HomeController#index as */*
Parameters: {"path"=>"index"}
Redirected to https://app.myhost.com/api/auth
The readmi and the docs as usually
have zero info except for heroku lovers staff
https://shopify.dev/docs/apps/tools/cli/commands
https://shopify.dev/docs/apps/deployment/web
Can someone help? It is become challenging to deal with extremely limited shopify docs. Merchants as usually waiting and losing mind why it is so long.
P.S.
all urls are set to my domain in shopify.app.toml and in app config in the shopify partners dashboard.