Complete the code to create a new Heroku app using the CLI.
heroku [1] myappThe heroku create command creates a new Heroku app with the given name.
Complete the command to push your Rails app code to Heroku.
git push [1] mainTo deploy to Heroku, you push your code to the heroku remote repository.
Fix the error in the command to run database migrations on Heroku.
heroku run [1] db:migrateIn modern Rails versions, rails db:migrate is the correct command to run migrations.
Fill both blanks to set the Ruby version and Rails environment in the Heroku app config.
heroku config:set RUBY_VERSION=[1] RAILS_ENV=[2]
Set RUBY_VERSION to your app's Ruby version (e.g., 3.2.2) and RAILS_ENV to 'production' for deployment.
Fill all three blanks to define a Procfile that runs the Rails server on the correct port.
web: bundle exec [1] server -p [2] -e [3]
The Procfile command uses rails server, listens on the port from the $PORT environment variable, and runs in production mode.