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)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay