Tuesday 31 January 2017

Set up rails enviorment

export RAILS_ENV=production
https://www.digitalocean.com/community/questions/how-to-set-rails-environment


check your .bach file and add RAILS_ENV='staging' OR RAILS_ENV='production' whatever you want to set your enviorment


OR

Open bashrc file by

Command:  sudo  vi ~/.bashrc

add below code at the end of the file 


if [[ $- != *i* ]] ; then
    # Shell is non-interactive.  Be done now!
    return
fi

export RAILS_ENV=staging
 

No comments:

Post a Comment