##
# Phusion Passenger
##
# Uncomment it if you installed ruby-passenger or ruby-passenger-enterprise
##
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
#passenger_ruby /home/new_user/.rbenv/shims/ruby; # If you use rbenv
passenger_ruby /home/new_user/.rvm/wrappers/ruby-2.2.0/ruby; # If use use rvm, be sure to change the version number
# passenger_ruby /usr/bin/ruby; # If you use ruby from source
$ sudo nano /var/lib/locales/supported.d/local # add locales you want to use
# zh_TW.UTF-8 UTF-8
$ sudo locale-gen
# regenerate locales
$ sudo nano /etc/default/locale
# set all as your preferal locale
# go to rails app which your want to deploy and inialize your deploy config file
$ mina init
# login and setup your server and create folders for later deployment
$ ssh username@123.123.123.123
$ sudo mkdir -p "/var/www/demo.com" && sudo chown -R new_user "/var/www/demo.com"
$ mina setup # after tweak your mina deploy.rb file, run this.
$ mina deploy # if mina setup is allpass, run this.
mina init will created config/deploy.rb. after this you might want to customize your deploy.rb file.