Welcome Guest | Login

How to host an html demo along with current Rails application?

Hi,

I have a rails application running currently on our HR account. I would like to upload a bunch of html pages with css to demo the to be version of our app to a client. How do I achieve that using my current HR account?

This is a very urgent requirement for us, so any kind of help on this would highly appreciated!

Thanks in advance,
Karthik

2008-04-02 03:54 AM

You can test this separately without affecting your current rails application. You can create a sub-domain and follow the tutorial below to run multiple rails applications on your account.
----------http://www.hostingrails.com/forums/wiki_thread/6
----------
Also you can upload the required html pages here in the sub-domain's document root and check the working.

2008-04-02 05:13 AM

Regards,
Rahul
Hi Rahul,

I tried creating a sub-domain demo.nurall.com and tried copying the html files in there, but that did not work for me. I get the following error:

Application error
Rails application failed to start properly

How do I fix this?

Thanks,
Karthik

2008-04-02 10:34 AM

I've put the following rewrite rules in your .htaccess file under the subdomain's root directory.
---------
RewriteEngine On
RewriteCond %{REQUEST_URI} .
RewriteRule .* - [L]

The site is working fine now.

2008-04-02 10:42 AM

Thanks Santhi, much appreciated!

Karthik

2008-04-02 10:52 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!