User and domain setup scripts - restarone/violet_rails GitHub Wiki

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: '[email protected]', password: 'password-here', password_confirmation: 'password-here', global_admin: true, confirmed_at: Time.now, can_manage_users: true, can_access_admin: true)