passenger

How to install Phusion Passenger 4 on Ubuntu (on apache2 or nginx)?

我怕爱的太早我们不能终老 提交于 2020-01-03 05:24:12
问题 While I understand that Passenger 5 is currently the standard, I have a unique use case requiring me to use Passenger 4 while I upgrade a current application. I can't seem to find any particular instructions on how to install Passenger 4 from the Passenger site. I also cannot seem to find any apt repositories with Passenger 4 either. Are there any resources available for doing this? And can this be done via apt? 回答1: Found out the answer in this old blog article from Phusion. The Passenger

Missing Rails Gem

筅森魡賤 提交于 2020-01-02 17:16:26
问题 I know this question has been asked multiple times on this site, but after digging through other answers, I am still coming up blank on how to resolve this. I just pulled copy of a rails app from a production server, and I get the following error: Missing the Rails 2.3.4 gem. Please gem install -v=2.3.4 rails , update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. rails

How can I tell Phusion Passenger which python to use?

帅比萌擦擦* 提交于 2020-01-02 05:15:14
问题 I'm using Phusion Passenger with a ruby app and I'd also like to set it up to work with an django appengine app I'm working on. Googling for "passenger_wsgi.py" I was able to get the following very simple non-django app working on passenger: passenger_wsgi.py: def application(environ, start_response): response_headers = [('Content-type','text/plain')] start_response('200 OK', response_headers) return ['Hello World!\n'] However, if I add the line import django.core.handlers.wsgi into the mix,

How to use Dockerfile in Gitlab CI

老子叫甜甜 提交于 2020-01-01 17:13:06
问题 Using gitlab-ci for my node/react app, I'm trying to use phusion/passenger-nodejs as the base docker image I can specify this easily in .gitlab-ci.yml: image: phusion/passenger-nodejs:latest variables: HOME: /root cache: paths: - node_modules/ stages: - build - test - deploy set_environment: stage: build script: - npm install tags: - docker test_node: stage: test script: - npm install - npm test tags: - docker However, Phusion Passenger expects you to make configuration changes, e.g. python

How do i make nginx and passenger restart automatically after a deploy

那年仲夏 提交于 2020-01-01 14:55:14
问题 I currently have a rails app deployed on a virtual private server. I use Capistrano, Nginx and passenger to run my rails app on the server. For some reason I can never get the updated code to display on the site after i have done a cap deploy:update. The deploy happens fine and the code is even seen on the live server via Vim but if I navigate to the live site it won't display. My current workaround is rebooting the server, starting nginx and passenger after the server boots back up. my

Issue with Passenger - Apache

£可爱£侵袭症+ 提交于 2020-01-01 12:25:12
问题 Running in a Linode slice with Ubuntu 10.04 LTS. I am getting a 500 Internal Server Error. The Apache log has: Apache/2.2.14 (Ubuntu) Phusion_Passenger/2.2.7 configured -- resuming normal operations caught SIGTERM, shutting down * Passenger could not be initialized because of this error: The Passenger spawn server script, '/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/passenger-spawn-server', does not exist. Please check whether the 'PassengerRoot' option is

How to properly diagnose a 500 error (Rails, Passenger, Nginx, Postgres)

有些话、适合烂在心里 提交于 2020-01-01 09:45:09
问题 I'm having a real tough time diagnosing a 500 error from my application running in production. I've had it working before, but after re-deploying via Capastrano I am unable to get it going. Here are the facts: The server is setup with nginx + passenger, and I'm using PostgreSQL. Static assets are working properly, as in I'm able to access them just fine in a browser. I can access the rails console via RAILS_ENV=production bundle exec rails console and perform Active Record actions (like

Passenger doesn't seem to be running (Capistrano/Rails/Apache/Ubuntu)

假如想象 提交于 2020-01-01 09:12:14
问题 Deploying a Rails app using Capistrano to an Ubuntu VM running Apache with Passenger enabled. I followed this tutorial: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/ with a few changes given that I'm on 17.04, not 14.04 LTS. passenger-config validate-install says everything looks fine with both Passenger and Apache. passenger-memory-stats shows both Passenger and Apache processes. I have sudo apache2ctl restart ed several times, with no warnings. But passenger

Centos 6.4 - Failed to map segment from shared object: Permission denied

蹲街弑〆低调 提交于 2020-01-01 08:32:55
问题 Hi, I am trying to install Phusion Passenger. Installation was successful but I am getting the following error on doing service httpd start Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/passenger.conf: Cannot load /usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so into server: /usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.33/buildout/apache2/mod_passenger.so: failed

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

一笑奈何 提交于 2019-12-31 14:26:32
问题 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