deployment - linode, rails, apache, passenger - site pointing to example.com:3000 and not example.com -


i signed linode ubuntu 10.04, used following guides me started:

general linode set - http://library.linode.com/getting-started apache installation - http://library.linode.com/web-servers/apache/installation/ubuntu-10.04-lucid rails deployment - http://library.linode.com/frameworks/ruby-on-rails-apache/ubuntu-10.04-lucid

however rails app points example.com:3000 , not example.com

my /etc/apache2/sites-availabe/example.com file looks this:

<virtualhost xxx.xxx.xxx.xxx:80>  serveradmin plato@example.com  servername example.com  serveralias www.example.com  documentroot /srv/www/example.com/application/example/public  errorlog /srv/www/example.com/logs/error.log  customlog /srv/www/example.com/logs/access.log combined </virtualhost>  

the root directory of rails application 'example' is

/srv/www/example.com/application/example/ 

i have feeling there may wrong documentroot line

my passenger.conf file is:

<ifmodule mod_passenger.c> passengerroot /usr passengerruby /usr/bin/ruby </ifmodule> 

my passenger.load file is:

loadmodule passenger_module /usr/lib/apache2/modules/mod_passenger.so 

example.com shows index.html page normal html page in public folder. none of other links work when click them. site works @ example.com:3000

any ideas going wrong, i've been trying solve quite few weeks now? thanks

edit: tried deploying heroku with:

git push heroku master 

and having same issue (index page show not of rails pages). ran:

heroku rake db:migrate 

and app working on heroku. how can equivalent production server on linode? may need rake db:migrate in production environment example.com work

this working:

i ran:

 bundle exec rake db:migrate rails_env=production 

for work : )


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -