skip to content »

Updating phusion passenger

updating phusion passenger-44

CMD ["/sbin/my_init"] # If you're using the 'customizable' variant, you need to explicitly opt-in # for features. Your application should be placed inside /home/app. It changes Nginx into an application server and runs your app from Nginx.Before using Passenger, you should familiarise yourself with it by reading its documentation. So to get your web app up and running, you just have to add a virtual host entry to Nginx which describes where you app is, and Passenger will take care of the rest.

updating phusion passenger-45

In its default configuration, it only uses 10 MB of memory (the memory consumed by bash, runit, syslog-ng, etc).You only have to write a small shell script which runs your daemon, and runit will keep it up and running for you, restarting it when it crashes, etc.The shell script must be called ### In (make sure this file is chmod x): #! `setuser mecached xxx...` runs the given command # (`xxx...`) as the user `memcache`. exec /sbin/setuser memcache /usr/bin/memcached Note that the shell script must run the daemon without letting it daemonize/fork it.Passenger relieves you from even having to write a shell script, and adds all sorts of useful production features like process scaling, introspection, etc.These are not available when you're only using runit.Interactive and login Bash shells load the RVM environment, which ensures that the appropriate directories under /usr/local/rvm are in PATH.

But this means that if you invoke a command without going through an interactive and login Bash shell (e.g.

To make your builds reproducible, make # sure you lock down to a specific version, not to `latest`!

# See # a list of version numbers.

You can add a virtual host entry (# /etc/nginx/sites-enabled/webapp.conf: server # Dockerfile: RUN rm /etc/nginx/sites-enabled/default ADD /etc/nginx/sites-enabled/RUN mkdir /home/app/webapp RUN ...commands to place your web app in /home/app/webapp...

# /etc/nginx/main.d/secret_key.conf: env SECRET_KEY=123456; # /etc/nginx/conf.d/gzip_max.conf: gzip_comp_level 9; # Dockerfile: ADD secret_/etc/nginx/main.d/secret_ADD gzip_/etc/nginx/conf.d/gzip_You can add additional daemons to the image by creating runit entries.

You can update the OS inside passenger-docker images yourself, and it is recommend that you do this instead of waiting for us.