Giter Club home page Giter Club logo

Comments (1)

pgnuta avatar pgnuta commented on July 28, 2024

You will probably want to look at installing phusion passenger, they the ruby server will run as an apache module. Here is what i did on Centos 6:

yum install httpd curl-devel httpd-devel
gem install passenger
passenger-install-apache2-module

vi /etc/httpd/conf/httpd.conf

Paste in

LoadModule passenger_module /usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so`

<IfModule mod_passenger.c>
    PassengerRoot /usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.28
    PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.0/wrappers/ruby
</IfModule>

Finally create a new VirtualHost entry in /etc/httpd/conf.d/

<VirtualHost *:80>
 DocumentRoot /opt/staytus/public
 ServerName  [put your server name here]
 CustomLog /opt/staytus/log/access_log combined
 ErrorLog /opt/staytus/log/error_log
 <Directory "/opt/staytus/public">
   AllowOverride All
   Options -MultiViews
 </Directory>
</VirtualHost>

from staytus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.