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

Rails app deploy not working for me

$
0
0

I have successfully done:

  1. Installed Bitnami Rails and Postgresql stacks
  2. Used Capistrano to get my app into this directory:/opt/bitnami/projects/ndeavor/releases/20130306192753
  3. Used Rake to build my database and insert seeds
  4. The projects/sample app is up and running

Now, I need my app to deploy.

I first tried Apache + Thin. I ran this command:

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

Which created the thin.yml file in my apps config directory.

But, when I run this command:

thin -C ${/opt/bitnami/projects/ndeavor/releases/20130306192753}/config/thin.yml start

I get:

bad substitution

I could try Apache and Passenger. I read this: "Passenger is only available for OS X and Linux. To use this method, you just need to include a virtual host which DocumentRoot points to 'public' directory in Rails application."

How do you "include a virtual host"?? Where does it go - what directory/file?

Thanks for the help!

UPDATE1

I think I found the httpd.conf file in opt/bitnami/apache2/conf directory

I updated with this:

<VirtualHost *:80>
   ServerName ndeavor.ameipro.com
  DocumentRoot /opt/bitnami/projects/ndeavor/releases/20130305221240/public
 <Directory /opt/bitnami/projects/ndeavor/releases/20130305221240/public>
  Allow from all
  Options -MultiViews
</Directory>
</virtualhost>

Now Passenger is giving me this error:

Error message:
fe_sendauth: no password supplied (PG::Error)

But, my app when I run rake with env=production accesses PG fine.

Is Passenger starting the app in production mode?

UPDATE

I added this line to the virtual host

    RailsEnv production

Got the same error


Viewing all articles
Browse latest Browse all 2052

Latest Images

Trending Articles



Latest Images