-
Notifications
You must be signed in to change notification settings - Fork 43
User and domain setup scripts
Shashike Jayatunge edited this page Sep 1, 2022
·
3 revisions
Open a Rails console by running:
rails c
# or
docker-compose run --rm solutions_app rails c
Subdomain.unsafe_bootstrap_root_domain
Subdomain.unsafe_bootstrap_www_subdomain
Visit the URL for your heroku app and you will see the message "Hello from public" Now to set your root account, make sure you're in a heroku console session and run the following:
User.create!(email: 'youremail@example.com', password: 'password-here', password_confirmation: 'password-here', global_admin: true, confirmed_at: Time.now, can_manage_users: true, can_access_admin: true)