Opslag

Viser opslag fra august, 2017

Installing nginx with passenger on Ubuntu 17.04

(The typos will be corrected soon) This little tutorial explains how to install Nginx with Passenger-support in order to run Ruby on Rails applications on Ubuntu 17.04. Ruby installation I'm a huge fan of RVM for mangeing Ruby installations, so make sure it's installed. gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \curl -sSL https://get.rvm.io | bash rvm install ruby-2.4.1 rvm use default ruby-2.4.1 I'v e had some problems installing Ruby 2.4.1 on other systems mainly OpenSUSE. Problems occured when compiling the source, and usally the problem were in use use of gcc7-compiler. Installing gcc6 installing Ruby like this usally works: CC=/usr/bin/gcc-6 rvm install ruby-2.4.1 In order to check if Ruby is installed correct run: ruby --version The output should be something like: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] nginx download Nginx doesn't support runtime