How to Install
Apache & Passenger
1. Install Apache
sudo apt-get install apache2
2. Install Passenger
sudo gem install passenger
3. Install Apache Passenger Module
sudo passenger-install-apache2-module
4. Copy some information After Install
The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/local/bin/ruby
After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!
Press ENTER to continue.
--------------------------------------------
Deploying a Ruby on Rails application: an example
Suppose you have a Rails application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName www.yourhost.com
DocumentRoot /somewhere/public # <-- be sure to point to 'public'!
<Directory /somewhere/public>
AllowOverride all # <-- relax Apache security settings
Options -MultiViews # <-- MultiViews must be turned off
</Directory>
</VirtualHost>
And that's it! You may also want to check the Users Guide for security and
optimization tips, troubleshooting and other useful information:
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/doc/Users guide Apache.html
Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
http://www.modrails.com/
|
1). Config Apache Conf
> cd /etc/apache2/
conf.d
>sudo vi rails
paste
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/local/bin/ruby
|
2)Add Virtual Host
> cd /etc/apache2/
sites-available
>sudo vi ac
paste
<VirtualHost *:80>
ServerName ac
DocumentRoot /home/programmer/workspace/AC/public
<Directory /home/programmer/workspace/AC/public>
AllowOverride all
Options -MultiViews
</Directory>
RailsEnv development
</VirtualHost>
|
>
sudo a2ensite ac
>
sudo /etc/init.d/apache2 reload
>
sudo vi /etc/hosts
add
3) Restart Server
> cd workspace/AC/tmp
>
touch restart.txt
分享到:
相关推荐
centos5.4 ruby本地安装passenger gem install passenger http://rubygems.org/gems/ gem库下载地址
1 准备工作 install nodejs # yum install httpd \httpd-devel \openssl-devel \zlib-devel \mysql-... passenger-install-apache2-module 安装完成后按照提示将下面的内容添加到etc/httpd/httpd.conf LoadModule pa
passenger-stack, 用于 Apache,乘客,Memcached,Git,Mysql或者Postgres的宋体 ,five分钟至英雄用于 Sprinkle的脚本,提供工具观看演示屏幕铸造的乘客堆栈。如何让你的sprinkle:获取一个品牌打击新片/主机( ...
该系统实现公交管理,能够对数据进行增删查,并把有效数据保存到文件里。 基于java语言,含源代码,完整版。
改系统实现公交管理的功能,包括增删改查。其基于java语言,完整版,含源代码
npm install && npm start Nginx乘客示例: server { listen 80 ; listen [::]:80; server_name phone-book.ononos.tk; access_log /var/log/nginx/phone_access.log; passenger_env_var MONGO_URL mongodb:...
本项目是基于C++和多种语言的mod_rails Phusion Passenger设计源码,包含4547个文件,其中包括3321个HPP文件、364个H文件、176个CPP文件、166个RB文件、63个C文件、56个JS文件、54个IPP文件、51个ERB文件和27个...
$ gem install capistrano-passenger 用法 将此行添加到您的Capfile然后deploy:restart设置为在:publishing完成后自动运行: require 'capistrano/passenger' 您还可以单独运行基础任务: # Restart your ...
本人学习ruby on rails 的开发和部署过程中的环境搭建的笔记 基本涵盖了ruby开发中用到的所有软件的安装 也给自己留个存档
passenger-ruby-websocket-demo, 在Phusion上,web sockets演示 Phusion乘客的web sockets这个应用程序演示了 Phusion Passenger中的web socket支持。 乘客支持所有主流的现代网络技术,如网格网,完全脱离了盒子。 ...
NULL 博文链接:https://wuhuizhong.iteye.com/blog/1103123
let her go passenger吉他谱
# gem install check_passenger 另外,也可以使用gem build从源代码gem build ,并将其手动安装在需要运行的计算机中。 无论哪种方式, check_passenger命令都应该在路径中可用-尽管可能有必要执行其他操作,例如...
passenger, 一种用于 ruby python 和 node.js的快速健壮的web服务器和 :快速而健壮的web服务器和应用服务器,用于 ruby,python 和 Node.js部署web应用程序需要大量复杂性,增加了生产中有用的强大的企业级特性。...
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 Transport Mode Shares in World Cities)(英文)-报告资料.pdf
Gleason 公司的官方资料,乘用车驱动桥齿轮设计,主要介绍弧齿锥齿轮及差速器锥齿轮的设计计算方法。
passenger.sql