-
Notifications
You must be signed in to change notification settings - Fork 2
Postinstallation
atOm aNt edited this page Jan 21, 2014
·
9 revisions
$ sudo rackup config.ru
( use '$ sudo rvm all do rackup config.ru', if you are using rvm )
...
[2013-11-04 23:22:27] INFO WEBrick 1.3.1
[2013-11-04 23:22:27] INFO ruby 1.9.2 (2012-04-20) [x86_64-darwin12.5.0]
[2013-11-04 23:22:27] INFO WEBrick::HTTPServer#start: pid=53704 port=4568
Now, open your browser and type http://localhost:4568
A good option for Linux servers is to use NGINX + Passenger. You can deploy both servers by running the command below
# copy-and-paste all in one line
curl -L https://raw.github.com/julianromerajuarez/ubuntu\
-debian-nginx-passenger-installer/master/install.sh | bash
You can get more information about this script here
After setting up your nginx, create a file called /etc/nginx/available-sites/kosa
and paste the text below:
server {
listen *:80;
server_name ___YOUR_PRODUCTION_DOMAIN.abc___;
access_log /var/log/kos.access.log;
error_log /var/log/kos.error.log;
root /www/kos/public;
passenger_enabled on;
}
then run:
$ sudo ln -s /etc/nginx/sites-available/kosa /etc/nginx/sites-enabled
The last step:
$ sudo service nginx restart