Fix bootstrap task that does not load the environment

This commit is contained in:
Maciej Szlosarczyk 2018-10-24 09:12:41 +03:00
parent 910753b076
commit 3d78128c76
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 8 additions and 8 deletions

View file

@ -1,11 +1,11 @@
desc 'Bootstraps production-like environment'
task :bootstrap do
AdminUser.create!(
username: 'admin',
email: 'admin@domain.tld',
password: 'adminadmin',
password_confirmation: 'adminadmin',
country_code: 'US',
roles: ['admin']
username: 'admin',
email: 'admin@domain.tld',
password: 'adminadmin',
password_confirmation: 'adminadmin',
country_code: 'US',
roles: ['admin']
)
end