This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.
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.
curl -s -L https://gist.github.com/raw/2129714/install.sh | bash
Now you may successfully check your Rails application in your browser.
© 2012 Kei Kubo [email protected]
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.
what is the configuration for multiple apps on single ip ? if so how can i do it ..