1
Is there a possibility to change the state of an application Rails, from production to testing ? with the possibility to return to production again
1
Is there a possibility to change the state of an application Rails, from production to testing ? with the possibility to return to production again
1
The correct thing would be to stop the application and then start it already in the test environment, it would not be a good practice.
1
Yes.
RAILS_ENV=<ambiente> <comando>
For example, to rotate the seeding from the test database, do:
RAILS_ENV=test rails db:seed
The environments are test
, development
, staging
and production
.
1
You can run the command below:
RAILS_ENV=test rails s
or
RAILS_ENV=production rails s
Browser other questions tagged ruby-on-rails rails4
You are not signed in. Login or sign up in order to post.