TODO: lots of steps, probably.
bundle exec rails s
bundle exec rake db:seed
See db/seeds.rb for login details
http://localhost:3000/rails/mailers/submission_mailer/new_submission
- Install the heroku CLI (https://devcenter.heroku.com/articles/heroku-command-line)
- Log in to heroku:
heroku login
- Add the branch to push to:
heroku git:remote --app csinsc-codingcomp
- Push the latest up:
git push heroku main
To avoid spam signups and complexity, management is done manually via the Rails console. To get to the rails console on the Heroku production environment:
heroku run rails console
Then run this command to create a user with a random password:
password = SecureRandom.alphanumeric
User.create!(name: "Test", email: 'test@example.com', password: password, password_confirmation: password)