DEV Community

Tao Liu
Tao Liu

Posted on • Edited on

Heroku Commands: Installation and App Creation

may need to update ruby 2.6.6 in gemfile, and run bundle
also change it in .ruby-version file
commit

curl https://cli-assets.heroku.com/install.sh | sh

heroku login
proceed to login in browser
heroku apps:create
heroku buildpacks:add heroku/ruby --index 1
code Procfile
inside Procfile:
web: bundle exec rails s
release: bin/rake db:migrate

Alt Text

heroku buildpacks:add heroku/ruby --index 1 -a, --app [APPNAME]
Alt Text

git push heroku master:main

https://devcenter.heroku.com/articles/git#creating-a-heroku-remote

Top comments (0)