Sunday, June 27, 2010

[Rails] Re: deploy: First Rails App to shared server

I deployed on Site5, so it's possible :)

Search their bulletin board for a tutorial, i can't remember the link
off hand, if you have trouble let me know.

If you are developing locally you don't need apache, just go to your
app in the terminal and say$ script/server

This is a pretty good getting started guide: http://guides.rubyonrails.org/getting_started.html

But anyway... check the Site5 forum it worked for me, you can try
using the cpanel to start off your rails app, and it will setup a
subdomain for you. if your get that app working, replace the contents
of the folder with your own...

I ssh'ed into site5 and linked the folder created by the cpanel wizard
to my own rails 'public' folder outside the www folder, if i remember
correctly. Theres no need for your rails app to be available to
apache. Then you probably want to look into their passenger server
restart method... where you're supposed to make a file called
restart.txt or something, and put it somewhere, I can't remember
exactly I think I moved it from the default location... again, the
forums are a good resource :) -- then you just ssh again and unix
"touch" it and bam the server restarts.... you might not want this
file to be in the www folder either ;)

Good luck,

- V


On Jun 26, 11:28 pm, Ali Imran <ali.imran.r...@gmail.com> wrote:
> I install locally apache2..
> and i have two hosting accounts i can use any one ...
>
> i have one with site5.com and other one is godaddy.com...
>
> what step i need to take now please help me ... its driving me crazy..
>
> On Jun 26, 12:02 pm, murali dhararao <sumud...@gmail.com> wrote:
>
>
>
> > Hi ,
>
> > Did you deployed application on apache server? is that is running locally?
>
> > On Sat, Jun 26, 2010 at 3:37 AM, Ali Imran <ali.imran.r...@gmail.com> wrote:
> > > I installed
>
> > > ruby: 1.8.7
> > > rails: 2.3.8
> > > gems:  1.3.5
>
> > > on the Ubuntu with passenger  2.2.15
>
> > > now i create the first demo application,
>
> > > i create a folder on home "ruby"->"demo"
>
> > > than i created a sites-available
>
> > > udo nano /etc/apache2/sites-available/demo
>
> > > <VirtualHost *:80>
>
> > > ServerName mydomain.com
> > > ServerAliaswww.mydomain.com
>
> > > DocumentRoot /home/ruby/demo/public
>
> > > </VirtualHost>
>
> > > i am looking for next step .. where to go from here and also please
> > > help me if i am doing these steps wrong
>
> > > i also run the demo project by apache2 server by
>
> > > placing application in  /var/www
>
> > > and it works fine.
>
> > > but how i move to this my shared hosting server
> > > and run online
>
> > > Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Ruby on Rails: Talk" group.
> > > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > rubyonrails-talk+unsubscribe@googlegroups.com<rubyonrails-talk%2Bunsubscrib e@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/rubyonrails-talk?hl=en.
>
> > --
> > Thanks & Regards,
> > MuraliDharaRao.T
> > +91-9642234646

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate