Build and deploy a new Shopify App to Heroku in minutes
rails new test-app --database=postgresql
cd test-app
git init
git add .
git commit -m 'new rails app'
The next step is to create a new heroku app. Pull up your heroku dashboard and make a new app!
cli:
heroku create name
heroku git:remote -a name
now we need to let git know where the remote server is so we’ll be able to deploy later
web:
https://dashboard.heroku.com/new
git remote add heroku git@heroku.com:appinfive.git
https://app.shopify.com/services/partners/api_clients
https://<name>.herokuapp.com/
https://<name>.herokuapp.com/auth/shopify/callback
$ echo "gem 'shopify_app'" >> Gemfile
bundle install
Note - its recommended to use the latest released version. Check the git tags to see the latest release and then add it to your Gemfile e.g gem 'shopify_app', '~> 7.1.0'
use the keys from your app in the partners area
rails generate shopify_app --api_key a366cbafaccebd2f615aebdfc932fa1c --secret 8750306a895b3dbc7f4136c2ae2ea293
git add .
git commit -m 'generated shopify app'
git push heroku
heroku run rake db:migrate
https://<name>.herokuapp.com/