Skip to content

Instantly share code, notes, and snippets.

@keikubo
Created April 14, 2012 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keikubo/2383434 to your computer and use it in GitHub Desktop.
Save keikubo/2383434 to your computer and use it in GitHub Desktop.
テストGist

テストGist

install_script_url : https://gist.github.com/2129714/install.sh

thumbnail_url : https://a248.e.akamai.net/assets.github.com/images/modules/header/logo_gist.png?1309219942

video_url : http://www.youtube.com/watch?v=iyqWyZVXl6g

demo_url : http://keikubo.rackbox.net:3000/

Description:

This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.

Installation:

Please make sure that your Gemfile in your rails application includes unicorn.

gem 'unicorn'

Next, check whether you already set $RAILS_ROOT as follows.

echo $RAILS_ROOT

If you do not set it yet, please do so like below.

export RAILS_ROOT=$HOME/sample_app

Please make sure to replace sample_app to your actual Rails project path.

Then, just execute the following command.

bash -s stable < <(curl -s https://raw.github.com/gist/2129714/install.sh)

Now you may successfully check your Rails application in your browser.

Contact

© 2012 Kei Kubo keikubo@fluxflex.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/license/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

require 'test'
def abc
puts "hello"
end
print "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment