How to check that RoR is working in Plesk 8.1.1
I had the possibility to upgrade my Plesk instalation from 8.0.1 to 8.1.1 without to pay additional money . In the new release notes they mentioned that Ruby on Rails is supported, so I tried it to see. The upgrade was fine, and now I have RoR installed.
To activate it you have to add fast_cgi support for your site. This option is in the same place like the others options (perl/php/python/cgi support).
To check that RoR is installed and it is working:
1. go into the document root folder for that domain.com:
# cd /srv/www/vhosts/domain.com/httpdocs/
2. create a simple RoR application:
# rails myapp
3. go into application directory:
# cd myapp
4. start WEBrick server on 9999 port:
# ruby script/server -p 9999
If you don’t specify a port, default is 3000 but in my case this port was already used.
For more options use the –help option:
[root@bijoux]# ruby script/server --help
=> Booting WEBrick...
Usage: ruby server [options]
-p, --port=port Runs Rails on the specified port.
Default: 3000
-b, --binding=ip Binds Rails to the specified ip.
Default: 0.0.0.0
-e, --environment=name Specifies the environment to run this server under (test/development/production).
Default: development
-m, --mime-types=filename Specifies an Apache style mime.types configuration file to be used for mime types
Default: none
-d, --daemon Make Rails run as a Daemon (only works if fork is available -- meaning on *nix).
-c, --charset=charset Set default charset for output.
Default: UTF-8
-h, --help Show this help message.
5. check your application in browser:
http://www.domain.com:9999
Now, you can see: Welcome aboard so, it is working.
That’s all, bye!
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.














Comments
No comments yet.
Leave a comment