passenger

How to start passenger in production environment?

房东的猫 提交于 2019-12-03 04:30:50
问题 I'm starting the Rails 3 application with the following command: passenger start -a 0.0.0.0 -p 3000 -d but how do I tell passenger to start the application in production environment? 回答1: passenger start -a 0.0.0.0 -p 3000 -d -e production Side note: always check the help, passenger start --help would have told you the same. 来源: https://stackoverflow.com/questions/7260961/how-to-start-passenger-in-production-environment

You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using bundle exec

旧时模样 提交于 2019-12-03 04:17:00
I've got a problem while i try to run my app : You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3. Consider using bundle exec. I read a lot about this kind of error, but i did not find any solution that worked for me I already removed my Gemfile.lock and re-run bundle as suggested here I already use the latest version of passenger (3.0.8) - as suggested here The bundle exec rake trick cannot be used in my case Thank you per advance Run bundle install --binstubs and you'll get bin directory in your application root with all executables needed by app. Then you need to

uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)

为君一笑 提交于 2019-12-03 04:15:42
i'm on rails 4 with passenger. everything was working great until i did a bundle just now. now i'm hitting the following error: Web application could not be started uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError) /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/rails-2ac97df55230/railties/lib/rails/application/configuration.rb:144:in `const_get' /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/rails-2ac97df55230/railties/lib/rails/application/configuration.rb:144:in `session_store' /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib

Run two different Rails application on one dedicated server

半城伤御伤魂 提交于 2019-12-03 03:54:42
问题 I have one dedicated server with below configurations i3 - Dual Core - 3.06Ghz H/T 16GB RAM 500GB SATA2 Now I want to execute two different Rails application on one dedicated server. A both application are different but they are using common database. Is it possible to do that? If yes – How can I do that? Is Phusion Passenger with Apache a good approach? If yes - How can I configure two application with one Phusion Passenger server? 回答1: I will describe how I run multiple Rails applications

What user is running my Rails app?

ⅰ亾dé卋堺 提交于 2019-12-03 03:46:51
I'm trying to get a bare bones Rails app deployed under Apache, Passenger 3.0.0 and Rails 3.0.3. I'm getting all kinds of weird errors. mostly revolving around what I think is related to bundler or RAILS_ENV. Only non-default thing about the app is that development & test environments use SQLite3 and production uses MySQL. When hitting app from web browser Passenger is throwing errors regarding gems (sqlite3) that are specifically (in the Gemfile AND in the database.yml) declared as NOT part of the production environment. How can I tell what user the server is trying to run my Rails app as? I

Recommendations (and Differences) between different Ruby on Rails Production Web Servers

醉酒当歌 提交于 2019-12-03 03:20:01
问题 Very soon I plan on deploying my first Ruby on Rails application to a production environment and I've even picked a webhost with all the managed server and Capistrano goodness you'd expect from a RoR provider. The provider allows for Mongrel, Thin, Passenger & FastCGI web servers, which seems very flexible, but I honestly don't know the differences between them. I have looked into them some, but it all gets a bit much when they start talking about features and maximum simultaneous requests -

Apache httpd.h file missing on MacOSX after Mavericks Upgrade (** Updated for Yosemite **)

不羁岁月 提交于 2019-12-03 01:26:41
I am trying to run the passenger-install-apache2-module command and I keep getting this error: ext/apache2/mod_passenger.c:25:10: fatal error: 'httpd.h' file not found Not sure what happened to it, my local dev environment was fine until I upgraded to Mavericks - I had to update XCode and uninstall/reinstall the passenger gem. I tried creating httpd.h in the /etc/apache2 directory and pasting this in but that didn't work. I've no idea how to replace this file I was having the same error. You need to: Update/install xcode. run xcode-select --install from the command line to reinstall the

Relationships between Rubygems, Bundler, and RVM

自闭症网瘾萝莉.ら 提交于 2019-12-03 00:33:42
问题 Following current best practices, what is the proper role for each of these? Based on my limited understanding of Bundler and RVM, it seems that they--like Rubygems--have their own install locations for gems. Plus, for each one, there's the option of installing to system paths using sudo or to your home directory. And then there's the ability to vendor gems with Bundler (where applicable, e.g. with Rails). So it looks to me like there are at least seven places to install gems now: Rubygems

Rails - Nginx needs to be restarted after deploying with Capistrano?

て烟熏妆下的殇ゞ 提交于 2019-12-02 23:59:06
I am using Capistrano to deploy my Rails application. whenever I deploy, changes would not be reflected on the browser, and I still need to restart nginx to update the site (running sudo /etc/init.d/nginx restart). I'm not really sure why but isn't it supposed to be updated after restarting application? (using touch /app/tmp/restart.txt) Here's my deploy.rb require "rvm/capistrano" set :rvm_ruby_string, 'ruby-1.9.3-p194@app_name' set :rvm_type, :user require "bundler/capistrano" set :application, "app_name" set :user, "me" set :deploy_to, "/home/#{user}/#{application}" set :deploy_via, :copy

Mac 下用 Nginx + Passenger 部署 Rails 的运行环境。

自闭症网瘾萝莉.ら 提交于 2019-12-02 23:57:55
系统需求 Mac OSX Lion 步骤0 安装环境依赖 安装Xcode 4.1,Xcode4.2以及更高的版本在 Lion 仍然存在一些兼容性问题,强烈建议使用XCode 4.1,下载地址: https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg 安装RVM $ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) 配置RVM自动加载,将下面这一行代码添加到~/.bash_profile中,然后退出iTerm并重新启动 [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm 安装 ruby-1.9.2-p290 $ rvm install 1.9.2 设置系统默认使用 ruby-1.9.2 $ rvm use 1.9.2 --default 步骤1 安装 Rails 安装Rails $ gem install rails Rails安装完成后,创建一个rails项目,假定你的项目叫做:awesome