I added the ip of the server in my /etc/hosts and it worked, it is great what I have to do, if I want to link myapp to a domainname?
On Thursday, April 17, 2014 1:40:14 AM UTC+2, Norm wrote: > > I deploy my app in a similar manner using virtual hosts on apache2 with > passenger. To do this I need to define a hostname with dns though you > could do it by putting the hostname in /etc/hosts on both the server and > client. That is what I do for local testing. From what you indicate I > think you need put the appropriate entries in /etc/hosts and address > http://myapp. > > Norm > > On 04/15/2014 04:09 PM, Melb01 wrote: > > Hi, > I developped a rails application and I wanted to deploy it, > I get a dedicated server, and I installed the necessary package: rails, > apache2, passenger > and I deploy it locally with success and I access it with: http://myapp > > when I tried to access it from a remote server with tthe url : http://<host > name>/myapp > I get the error message 404 not found, what am I doing wrong > > I am able to access it with http://<host name>:3000 when I start the app > with "rails s" > > rgds > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/66876613-8402-4fb0-956b-0242383f24c4%40googlegroups.com<https://groups.google.com/d/msgid/rubyonrails-talk/66876613-8402-4fb0-956b-0242383f24c4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fc9c297e-096b-4863-8ab3-0df33950492d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

