Having trouble deploying to production (Linode, Passenger)

I’m a brand new Rails user, I’m following this tutorial:
http://ruby.railstutorial.org/chapters/a-demo-app#top.

I’ve had no issues locally, able to view the test app on the local
server.

However, I can’t figure out what I’m doing wrong on Linode (using
Passenger).

Here’s what I’ve done so far:

  1. Push the local app to BitBucket
  2. Clone the BitBucket repo to /srv/www/preziki/first_app
  3. Do Bundle install
  4. Do rake db:migrate
  5. Configure the VirutalHost file:

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName preziki.com
ServerAlias www.preziki.com
DocumentRoot /srv/www/preziki/first_app/public
ErrorLog /srv/www/preziki/logs/error.log
CustomLog /srv/www/preziki/logs/access.log combined

  1. Enable the site: a2ensite preziki
  2. Restart Apache
  3. Reload Apache

If you go to www.preziki.com (or http://176.58.104.181/) you see the
standard default Rails page, if you click “About your application’s
environment”- the link doesn’t work. If you try to do preziki.com/users
you get the “We’re sorry, something went wrong” message.

What am I doing wrong?

Thank you.

Am 12.07.2012 00:59 schrieb “IvanPomedorov” [email protected]:

What am I doing wrong?

You are not telling us , what your logs say, but IT would help to see
the
logging Output of the request for User, or any other site that isnt
working
as expected.

Is this what you mean? Here are the last few entries for the
/srv/www/preziki/logs/error.log file:

[Thu Jul 12 04:45:56 2012] [error] [client 67.168.204.53] File does not
exist: /srv/www/preziki/first_app/public/assets, referer:
http://www.preziki.com/
[Thu Jul 12 04:45:59 2012] [error] [client 67.168.204.53] File does not
exist: /srv/www/preziki/first_app/public/rails, referer:
http://www.preziki.com/
[Thu Jul 12 04:46:04 2012] [error] [client 67.168.204.53] File does not
exist: /srv/www/preziki/first_app/public/rails, referer:
http://www.preziki.com/

The /srv/www/preziki/first_app/log/production.log is empty.

My assets folder is inside the first_app folder- is that error saying
that
the app is looking for it in a first_app/public folder?