Install your application normally. If you need dependencies to be installed, log in SSH with the user "admin" use the gem" command.
By default, your application is accessible via a URL such as http://your-virtualhost/public/. Most likely, you do not want the /public/ directory to be visible.
You need to create a .htaccess in the "htdocs" folder with the following setting:
RewriteEngine On
RewriteRule ^$ /public/ [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /public/$1 [L]
Your application is now directly accessible via the URL http://your-virtualhost/.
Note:
In this example, your application is installed at the root of your virtualhost. If you did not install it there, simply add a "RewriteBase /subdir" under the "RewriteEngine On" line if your application is in the /subdir folder for instance, and create the .htaccess file in the same folder.
No question on this page and its children.
RSS feed for questions matching this filter (Help)Last modified: 21 Apr 2009 at 12:50 by John G. (Gandi)