Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

deploying rails app on bitnami cloud - apache + thin

$
0
0

Hi,

I'm trying to deploy a rails app on rubystack (using bitnami cloud). I've copied my project to /opt/bitnami/apps/rails/myapp I've used

sudo thin -s 5 -p 3000 -e production --prefix /myapp -C config/thin.yml config

then sudo thin -C /opt/bitnami/apps/rails/myapp/config/thin.yml start

I've got 5 processes running on ports 3000-3004

I've also added a file http.conf in /opt/bitnami/apps/rails/myapp/conf which contains

Alias /myapp "/opt/bitnami/apps/rails/myapp/public"
<Directory "/opt/bitnami/apps/rails/myapp/public">
  AllowOverride None
  Order allow,deny
  Allow from all
</Directory>

and in httpd.conf file in /opt/bitnami/apache2/conf Include "/opt/bitnami/apps/rails/myapp/conf/http.conf"

now I start apache using sudo /opt/bitnami/ctlscript.sh start apache

and when I'm trying to see the page using http://new-server-xxxxxx.bitnamiapp.com/myapp/ in the browser I'm getting: Forbidden You don't have permission to access /myapp/ on this server.

And in apache error_log I see: [Sun Jan 20 13:05:31 2013] [error] [client 31.178.61.203] Directory index forbidden by Options directive: /opt/bitnami/apps/rails/myapp/public/ [Sun Jan 20 13:05:31 2013] [error] [client 31.178.61.203] File does not exist: /opt/bitnami/apache2/htdocs/favicon.ico

I've tried different approaches I've found in the net but still none of them working. I would appreciate any suggestions, tutorials how to run that app.

Thanks, Dominik


Viewing all articles
Browse latest Browse all 2052

Trending Articles