We run the below command for getting into rails console.
> rails c
By default it will load the development environment. But some time you may need to run in production env to check some configuration variables.
You can run the rails console by specific environment with the below command.
> RAILS_ENV=production rails console
This will load the production environment setting to the console env.
Thank You,
Uma Mahesh.
No comments:
Post a Comment