Tired of juggling multiple Rails apps around with script/server? See how to set up Passenger in development so each one has its own local domain name.
Sorry to make this platform specific. It looks like Passenger isn’t available on Windows.
sudo gem install passenger
sudo passenger-install-apache2-module
mate /etc/apache2/httpd.conf
sudo apachectl graceful
mate /etc/hosts
tail -f log/development
touch tmp/restart.txt
# /etc/apache2/httpd.conf
LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.0.2/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.0.2
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
NameVirtualHost *:80
<VirtualHost *:80>
ServerName railscasts.local
DocumentRoot "/Users/rbates/code/railscasts/public"
RailsEnv development
RailsAllowModRewrite off
<directory "/Users/rbates/code/railscasts/public">
Order allow,deny
Allow from all
</directory>
</VirtualHost>
# /etc/hosts
127.0.0.1 railscasts.local
分享到:
相关推荐
- The development and implementation of national security strategies. - The balance between civil liberties and security needs. - International cooperation in addressing common security challenges. - ...
Accurate SOC prediction not only guarantees passenger safety but also aids in proactive maintenance planning, reducing unexpected failures and downtime. In the context of the research, the authors ...
Ranging from local development environments through complex data center setups to scalable cloud implementations, Puppet allows you to handle them all with a unified approach. Puppet 4 Essentials, ...
Fraud is a threat that most online service providers must address in the development of their systems to ensure an efficient security policy and the integrity of their revenue. Amadeus, a Global ...
1. **强调句型**:在例句"It was only when the car pulled up in front of our house we saw Lily in the passenger seat."中,使用了强调句型,强调事件发生的时间——汽车停在我们房子前。结构为"It is/was + 被...