Phusion Passenger is one of the easiest Rails and Rack environments to set up and configure with Apache2. With my bootstrapping scripts, the ability to establish a Virtual machine image and have a working Rails application on it in minutes is a reality. Here is how I do it.
Bootstrap Passenger
Begin by Bootstrapping Ubuntu.
The next step is to run the script for installing Passenger. The standard passenger install against the standard Ruby 1.8.7 package managed libraries are installed with the following:
(assuming you’ve downloaded the bootstrap scripts and are in the ~/bootstrap-scripts/ubuntu/intrepid folder already, execute the following script:
./bootstrap-passenger-std.sh
Passenger’s install prompts you two or three times. Simply press and ignore the additional configuration instructions (the bootstrap script carries out these instructions for you).
Set up a demo Rails project
cd /var/www
sudo mkdir rails
cd rails
sudo rails demo
cd ..
chown -R www-data:www-data rails
Set up a Virtual Host Entry
Apache2 on Ubuntu makes it fairly straightforward to set up a provider for the Rails application, simply create the following in /etc/apache2/sites-available/demo:
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/rails/demo/public
</VirtualHost>
And then enable the site:
sudo a2ensite demo
sudo /etc/init.d/apache2 reload
End Result
If all goes well, you should then be able to browse to http://localhost and see the rails greet page. Your system will look something like this:
OS: 2.6.27-7-server x86_64 GNU/Linux
Apache: Server version: Apache/2.2.9 (Ubuntu)
Passenger: 2.0.6
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Rubygems: 1.3.1
gems:
- actionmailer (2.2.2)
- actionpack (2.2.2)
- activerecord (2.2.2)
- activeresource (2.2.2)
- activesupport (2.2.2)
- fastthread (1.0.1)
- passenger (2.0.6)
- plist (3.0.0)
- rack (0.9.1)
- rails (2.2.2)
- rake (0.8.3)
分享到:
相关推荐
rails-nginx-passenger-ubuntu, 关于如何在 Nginx 8.04服务器上启动和运行和乘客的说明 rails-nginx-passenger-ubuntu我关于用 ubuntu 。Nginx 。乘客和mysql建立 Rails的简单制作服务器的笔记。别名echo"alias ll='...
centos5.4 ruby本地安装passenger gem install passenger http://rubygems.org/gems/ gem库下载地址
RailsOnUbuntu 对于使用Ubuntu的Ruby on Rails开发人员的一些有用的脚本/好东西! 1. Rails安装程序 为了在Ubuntu 12.04 LTS(精确的穿山甲)/ 12.10(定量Quetzal)上设置Rails,我还为初学者编写了逐步指南,请...
本人学习ruby on rails 的开发和部署过程中的环境搭建的笔记 基本涵盖了ruby开发中用到的所有软件的安装 也给自己留个存档
1 准备工作 install nodejs # yum install httpd \httpd-devel \openssl-... # gem install passenger passenger-install-apache2-module 安装完成后按照提示将下面的内容添加到etc/httpd/httpd.conf LoadModule pa
在没有RVM或rbenv的Ubuntu 14.04上的Rails,PostgreSQL带Passenger + Nginx ssh-copy-id -i ~/.ssh/id_rsa.pub root@SERVER scp rails-passenger-postgres-nginx root@SERVER:/root/rails-passenger-postgres-...
改系统实现公交管理的功能,包括增删改查。其基于java语言,完整版,含源代码
该系统实现公交管理,能够对数据进行增删查,并把有效数据保存到文件里。 基于java语言,含源代码,完整版。
ubuntu-16-nginx-passenger-ruby-2.3 一个Docker映像,用作在Phusion Passenger和nginx下运行的基于Ruby 2.3的Web应用程序的基础。 打算在OpenShift下进行最终部署。 Phusion Passenger是一个Web应用程序服务器: ...
Capistrano ::乘客 通过Capistrano部署后添加任务以重新启动应用程序。 支持乘客版本6及更低版本。 安装 将此行添加到应用程序的...# The restart mechanism used is based on the version of Passenger installed on y
NULL 博文链接:https://wuhuizhong.iteye.com/blog/1103123
passenger-ruby-websocket-demo, 在Phusion上,web sockets演示 Phusion乘客的web sockets这个应用程序演示了 Phusion Passenger中的web socket支持。 乘客支持所有主流的现代网络技术,如网格网,完全脱离了盒子。 ...
let her go passenger吉他谱
Survey of Passenger Weights
乘客 乘客是一个轻量级的聊天室,它利用在peerjs上构建的WebRTC...npm install # creates a run script ./devify.sh 运行对等服务器 # this will open your browser and start the local server ./run.sh ##许可证MIT
passenger, 一种用于 ruby python 和 node.js的快速健壮的web服务器和 :快速而健壮的web服务器和应用服务器,用于 ruby,python 和 Node.js部署web应用程序需要大量复杂性,增加了生产中有用的强大的企业级特性。...
世界城市客运交通出行模式(Passenger Transport Mode Shares in World Cities)(英文)-报告资料.pdf
Gleason 公司的官方资料,乘用车驱动桥齿轮设计,主要介绍弧齿锥齿轮及差速器锥齿轮的设计计算方法。
passenger.sql