Skip to content

Instantly share code, notes, and snippets.

@jhit
Created September 30, 2012 13:46
Show Gist options
  • Select an option

  • Save jhit/3806768 to your computer and use it in GitHub Desktop.

Select an option

Save jhit/3806768 to your computer and use it in GitHub Desktop.

Revisions

  1. jhit revised this gist Sep 30, 2012. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion install-rvm.md
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,6 @@ Install Rails 3.2.8 or what is now the current stable release and activate it
    I use bundler to manage my gems. Lets install it.
    `gem install bundler`

    If you do not need some gems, for instance *mysql2*, you can run bundler like this:
    If you do not need some gems, for instance *mysql2*, run bundler like this:
    `bundle install --without development test mysql2`

    2 changes: 1 addition & 1 deletion puma-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Sitewide Setup of PUMA with NGINX
    Sitewide Setup of PUMA with NGINX *draft*
    =================================

    In your project folder create a new file.
  2. jhit revised this gist Sep 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-rvm.md
    Original file line number Diff line number Diff line change
    @@ -46,5 +46,5 @@ I use bundler to manage my gems. Lets install it.
    `gem install bundler`

    If you do not need some gems, for instance *mysql2*, you can run bundler like this:
    `bundle install --without development test *mysql2*`
    `bundle install --without development test mysql2`

  3. jhit revised this gist Sep 30, 2012. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install-rvm.md
    Original file line number Diff line number Diff line change
    @@ -33,14 +33,14 @@ Set it as default
    `rvm use 1.9.3 --default`

    Install some gems that need root privilege. If you this now, you do not need to run bundler with root privilege later on. You do not need to install all the extensions. If you do not use mySQL, you can skip this line. But remember to add it to the exclude list of bundler (bundle install --without mysql2)
    `rvmsudo gem install rmagick
    rvmsudo gem install pg
    rvmsudo gem install mysql2`
    `rvmsudo gem install rmagick`
    `rvmsudo gem install pg`
    `rvmsudo gem install mysql2`

    Install Rails 3.2.8 or what is now the current stable release and activate it
    `rvm gemset create rails328
    rvm gemset use rails328
    gem install rails -v 3.2.8`
    `rvm gemset create rails328`
    `rvm gemset use rails328`
    `gem install rails -v 3.2.8`

    I use bundler to manage my gems. Lets install it.
    `gem install bundler`
  4. jhit revised this gist Sep 30, 2012. 2 changed files with 21 additions and 21 deletions.
    30 changes: 15 additions & 15 deletions install-rvm.md
    Original file line number Diff line number Diff line change
    @@ -23,28 +23,28 @@ Additionally you need to add this line to the .bashrc file of root, otherwise rv

    `source /etc/profile.d/rvm.sh`

    Test your environment. Run the followinc command and if everything is set correctly it should return *rvm is a function*
    Test your environment. Run the followinc command and if everything is set correctly it should return *rvm is a function*
    `type rvm | head -n 1`

    Now install Ruby 1.9.3
    Now install Ruby 1.9.3
    `rvm install 1.9.3`

    Set it as default
    Set it as default
    `rvm use 1.9.3 --default`

    Install some gems that need root privilege. If you this now, you do not need to run bundler with root privilege later on. You do not need to install all the extensions. If you do not use mySQL, you can skip this line. But remember to add it to the exclude list of bundler (bundle install --without mysql2)
    `rvmsudo gem install rmagick
    rvmsudo gem install pg
    rvmsudo gem install mysql2`
    Install some gems that need root privilege. If you this now, you do not need to run bundler with root privilege later on. You do not need to install all the extensions. If you do not use mySQL, you can skip this line. But remember to add it to the exclude list of bundler (bundle install --without mysql2)
    `rvmsudo gem install rmagick
    rvmsudo gem install pg
    rvmsudo gem install mysql2`

    Install Rails 3.2.8 or what is now the current stable release and activate it
    `rvm gemset create rails328
    rvm gemset use rails328
    gem install rails -v 3.2.8`
    Install Rails 3.2.8 or what is now the current stable release and activate it
    `rvm gemset create rails328
    rvm gemset use rails328
    gem install rails -v 3.2.8`

    I use bundler to manage my gems. Lets install it.
    `gem install bundler`
    I use bundler to manage my gems. Lets install it.
    `gem install bundler`

    If you do not need some gems, for instance *mysql2*, you can run bundler like this:
    `bundle install --without development test *mysql2*`
    If you do not need some gems, for instance *mysql2*, you can run bundler like this:
    `bundle install --without development test *mysql2*`

    12 changes: 6 additions & 6 deletions puma-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    Sitewide Setup of PUMA with NGINX
    =================================

    In your project folder create a new file.
    `Gemfile.local`
    In your project folder create a new file.
    `Gemfile.local`

    and add this line:
    `gem 'puma'`
    and add this line:
    `gem 'puma'`

    To install PUMA support in your project run
    `gem install puma`
    To install PUMA support in your project run
    `gem install puma`
  5. jhit revised this gist Sep 30, 2012. 2 changed files with 12 additions and 12 deletions.
    18 changes: 9 additions & 9 deletions install-rvm.md
    Original file line number Diff line number Diff line change
    @@ -24,27 +24,27 @@ Additionally you need to add this line to the .bashrc file of root, otherwise rv
    `source /etc/profile.d/rvm.sh`

    Test your environment. Run the followinc command and if everything is set correctly it should return *rvm is a function*
    type rvm | head -n 1
    `type rvm | head -n 1`

    Now install Ruby 1.9.3
    rvm install 1.9.3
    `rvm install 1.9.3`

    Set it as default
    rvm use 1.9.3 --default
    `rvm use 1.9.3 --default`

    Install some gems that need root privilege. If you this now, you do not need to run bundler with root privilege later on. You do not need to install all the extensions. If you do not use mySQL, you can skip this line. But remember to add it to the exclude list of bundler (bundle install --without mysql2)
    rvmsudo gem install rmagick
    `rvmsudo gem install rmagick
    rvmsudo gem install pg
    rvmsudo gem install mysql2
    rvmsudo gem install mysql2`

    Install Rails 3.2.8 or what is now the current stable release and activate it
    rvm gemset create rails328
    `rvm gemset create rails328
    rvm gemset use rails328
    gem install rails -v 3.2.8
    gem install rails -v 3.2.8`

    I use bundler to manage my gems. Lets install it.
    gem install bundler
    `gem install bundler`

    If you do not need some gems, for instance *mysql2*, you can run bundler like this:
    bundle install --without development test *mysql2*
    `bundle install --without development test *mysql2*`

    6 changes: 3 additions & 3 deletions puma-setup.md
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,10 @@ Sitewide Setup of PUMA with NGINX
    =================================

    In your project folder create a new file.
    Gemfile.local
    `Gemfile.local`

    and add this line:
    gem 'puma'
    `gem 'puma'`

    To install PUMA support in your project run
    gem install puma
    `gem install puma`
  6. jhit revised this gist Sep 30, 2012. 2 changed files with 38 additions and 1 deletion.
    28 changes: 27 additions & 1 deletion install-rvm.md
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,30 @@ Important: After running the RVM installation script **log out or quit SSH sessi
    If you do a multiuser setup you need to add this line to all starter scripts that should use rails, builder etc.
    Additionally you need to add this line to the .bashrc file of root, otherwise rvm will not properly initialise the environment variables for root.

    `source /etc/profile.d/rvm.sh`
    `source /etc/profile.d/rvm.sh`

    Test your environment. Run the followinc command and if everything is set correctly it should return *rvm is a function*
    type rvm | head -n 1

    Now install Ruby 1.9.3
    rvm install 1.9.3

    Set it as default
    rvm use 1.9.3 --default

    Install some gems that need root privilege. If you this now, you do not need to run bundler with root privilege later on. You do not need to install all the extensions. If you do not use mySQL, you can skip this line. But remember to add it to the exclude list of bundler (bundle install --without mysql2)
    rvmsudo gem install rmagick
    rvmsudo gem install pg
    rvmsudo gem install mysql2

    Install Rails 3.2.8 or what is now the current stable release and activate it
    rvm gemset create rails328
    rvm gemset use rails328
    gem install rails -v 3.2.8

    I use bundler to manage my gems. Lets install it.
    gem install bundler

    If you do not need some gems, for instance *mysql2*, you can run bundler like this:
    bundle install --without development test *mysql2*

    11 changes: 11 additions & 0 deletions puma-setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Sitewide Setup of PUMA with NGINX
    =================================

    In your project folder create a new file.
    Gemfile.local

    and add this line:
    gem 'puma'

    To install PUMA support in your project run
    gem install puma
  7. jhit renamed this gist Sep 30, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. jhit created this gist Sep 30, 2012.
    24 changes: 24 additions & 0 deletions install-rvm.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    Just some helpful commands to get RVM running on Debian Sqeeze.
    ===============================================================

    Install basic build tools for RVM
    `apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config`

    Install dependencies to compile the mysql2 gem
    `apt-get install libmysqlclient-dev`

    Install dependencies to compile the postgre db gem
    `apt-get install libpq-dev`

    Install dependencies to compile the ImageMagick gem
    `apt-get install libmagick++-dev libmagickcore-dev libmagickwand-dev`

    Read the [official install notes](https://rvm.io/rvm/install/) on the RVM website.
    For a multiuser setup [read this note too](https://rvm.io/support/troubleshooting/#sudo title="Use the sudo command!")!

    Important: After running the RVM installation script **log out or quit SSH session**! Otherwise the RVM environment variables might not be there and your further setup gets borked.

    If you do a multiuser setup you need to add this line to all starter scripts that should use rails, builder etc.
    Additionally you need to add this line to the .bashrc file of root, otherwise rvm will not properly initialise the environment variables for root.

    `source /etc/profile.d/rvm.sh`