Created
February 19, 2013 11:57
-
-
Save davidsirr/4985207 to your computer and use it in GitHub Desktop.
Rails Dev on OSX with RVM, Gemsets, Passenger, NGINX ** incomplete... using rbenv instead now **
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update rvm manager | |
rvm get stable && rvm reload && rvm repair all | |
# update rubygems system | |
gem update --system | |
# update gems | |
gem update | |
# gemset list | |
rvm gemset list | |
# rubys list | |
rvm list | |
# use a version and gemset | |
rvm use 1.9.3@gemset_name | |
@@ passenger with nginx @@ | |
-------------------------- | |
#start with no nginx as it will recompile with passenger anyway | |
# non-sudo install rvm | |
\curl -L https://get.rvm.io | bash -s stable | |
# install latest ruby | |
rvm install 1.9.3 | |
# use global gemset for passenger install | |
rvm use default@global | |
# install passenger gem (beta with --pre) | |
gem install passenger --pre | |
# install the passenger nginx module | |
passenger-install-nginx-module | |
[ENTER]; [2] - to specify source and recompile; | |
# download appropriate nginx source (from the installer terminal message above | |
# pick the matching version it's trying to build) and download tar and unpack | |
# to /usr/local/nginx_source/x.x.x | |
specify that source path | |
specify install path: /usr/local/nginx | |
to get around PCRE homebrew error add compile option of: --with-ld-opt='-L /usr/local/lib' | |
# may have to resymlink if you already installed nginx through homebrew | |
brew uninstall nginx | |
ln -f -s /usr/local/nginx/sbin/nginx /usr/local/sbin/nginx | |
# now you change the http bind port to 8080 to not conflict with apache local | |
/usr/lcoal/nginx/conf/nginx.conf | |
server { | |
listen 8080; | |
# stop start nginx | |
nginx -s stop | |
nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment