Forum: Rails deployment How to host Ruby application on godaddy shared server

80b9c11e2feb6adb6a67586664088806?d=identicon&s=25 Ranjan (Guest)
on 2007-04-13 18:16
Hi All.
I am a developer working for Ruby On Rails project. I am trying to
deploy my ruby project on godaddy shared server, but i am unable to
browse the application and i am not getting any help from the support
team of hosting server. Can any one help me to solve the problem. It
would be grateful for me if anyone suggest me what to do.

Thanks in advance for your help
10d9ed7ab11115b081bb36f56a7a13bc?d=identicon&s=25 John Wilger (jwilger)
on 2007-04-14 19:38
(Received via mailing list)
On Apr 13, 9:16 am, Ranjan <ruby-forum-incom...@andreas-s.net> wrote:
> I am a developer working for Ruby On Rails project. I am trying to
> deploy my ruby project on godaddy shared server, but i am unable to
> browse the application and i am not getting any help from the support
> team of hosting server. Can any one help me to solve the problem. It
> would be grateful for me if anyone suggest me what to do.

I don't have any experience with GoDaddy's shared hosting, but I can
tell you that trying to run a Rails application on a shared server
will lead to nothing but headaches.  You really want a dedicated
server or VPS with at least 256MB of RAM for even most trivial Rails
apps.

--
Regards,

John Wilger
5bdc87afd3a04e41c5958631185568f3?d=identicon&s=25 maykelrr@speedyrails.com (Guest)
on 2007-04-15 03:49
(Received via mailing list)
A VPS is not needed for small rails applications, and it would require
some knowledge about Linux administration, Apache, Mongrel, etc.

I would recommend you to go to PlanetArgon.com, Railsplayground.com or
SpeedyRails.com if you are looking for great shared hosting service.

Best regards,

Maykel Rodriguez
www.speedyrails.com
10d9ed7ab11115b081bb36f56a7a13bc?d=identicon&s=25 John Wilger (jwilger)
on 2007-04-15 09:49
(Received via mailing list)
On Apr 14, 6:48 pm, "mayke...@speedyrails.com" <mayke...@gmail.com>
wrote:
> A VPS is not needed for small rails applications, and it would require
> some knowledge about Linux administration, Apache, Mongrel, etc.

The problem with shared hosts isn't necessarily your small application
-- it's often the other guy's big application. There's simply no way
around it; Rails requires a decent chunk of dedicated RAM to be
useful. I'm not trying to be a detractor here -- that's just one of
the trade-offs you need to be aware of. I don't think it's a
coincidence that the number of places offering decent-but-low-end VPS
solutions has increased dramatically with the growing popularity of
Rails.

There are plenty of places today that offer incredibly affordable VPS
solutions, and attaining "some knowledge about Linux administration",
etc. is an investment you won't regret. If you're really trying to
learn Ruby/Rails (or any other platform for that matter) you also need
to understand the environment that supports it. That doesn't mean you
need all of the skills of a great sysadmin, but you should be able to
-- for example -- install a base Linux system and get it to the point
of serving a Rails application.

If you decide you do want to use shared hosting, I agree with Maykel
that you should consider one of the providers he mentioned over
GoDaddy. You'll certainly have better luck with one of them since they
have made official Rails support part of their core offering.

--
Regards,

John Wilger
5bdc87afd3a04e41c5958631185568f3?d=identicon&s=25 maykelrr@speedyrails.com (Guest)
on 2007-04-15 17:08
(Received via mailing list)
I agree 100% with John, it's true that the historic problem with
shared hosting is the resources sharing. At speedyrails we have tried
to solve this issue guaranteeing 60MB of RAM for every mongrel
instance. The number of mongrel instances per processor is also
controlled, only around 30 - 35 mongrel instances per processor,
guaranteeing a fairly good performance for shared hosting customers.
There are always sites with more traffic than others, so in some cases
we have had to move some busy sites to servers with lower load, but
this is not frequent, with the above constrains our servers have been
running pretty smoothly for more than 4 months (we launched our
service last November).

I think a similar approach is used at RaislPlayGround and I guess more
providers are doing so.
2cb917c5e1f42ed12d849e4a7b4171c0?d=identicon&s=25 Guest (Guest)
on 2007-04-24 06:06
Ranjan wrote:
> Hi All.
> I am a developer working for Ruby On Rails project. I am trying to
> deploy my ruby project on godaddy shared server, but i am unable to
> browse the application and i am not getting any help from the support
> team of hosting server. Can any one help me to solve the problem. It
> would be grateful for me if anyone suggest me what to do.
>
> Thanks in advance for your help

Not one person on this list has answered the initial question.
Regardless of your opinions of negativity -- has anyone gotten a rails
app running on a godaddy account and if so could you share with the rest
of us your magic?
10d9ed7ab11115b081bb36f56a7a13bc?d=identicon&s=25 John Wilger (jwilger)
on 2007-04-24 10:31
(Received via mailing list)
On Apr 23, 9:06 pm, Guest <ruby-forum-incom...@andreas-s.net> wrote:
> Not one person on this list has answered the initial question.
> Regardless of your opinions of negativity -- has anyone gotten a rails
> app running on a godaddy account and if so could you share with the rest
> of us your magic?

My guess would be that the lack of an answer in any of the places I've
seen this question asked is an answer in itself. It's hardly
"negativity" to point out the fact that high-volume, discount hosts
such as GoDaddy are not a great place to try and run a Rails
application -- it's just a statement of fact.
50c1f2f516dfe5b6256ec9f62a949ba6?d=identicon&s=25 Marlon Moyer (Guest)
on 2007-04-25 01:46
(Received via mailing list)
I've been able to get simple apps to run on GoDaddy.....read that as
"run" rather than perform.  It usually takes up to 15 seconds for the
fcgi process to spawn, but once it does, it will run at a decent clip
for a while.

Steps I've taken.

1. Set up the rails app directory in the cgi manager.
2. Freeze rails and any other gems.  (I've used up to version 1.1.6 on
GoDaddy)
3. Upload the project into a subdirectory of the newly created rails
app directory
4. In the cgi manager, create the symbolic link to your newly uploaded
app.
5. Change permissions on /sitename/public/dispatch.* to 755
6. make sure the first line of the dispatch.cgi and the dispatch.fcgi
is #!/usr/local/bin/ruby
7. Once it works in cgi, try fcgi by editing the .htaccess file again
and changing this line RewriteRule ^(.*)$ dispatch.cgi [QSA,L] to
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
8. I've also been able to use a domain pointer to point directly at
the rails app.  Just use the domain management control panel to point
your extra domain to the /rails_apps/sitename/public directory.


Lest you think I'm full of BS :), this little test site is running on
fcgi on godaddy's servers right now.  Please be kind, it's just a test
site :)

http://www.moyerfamily.name/movies/

Another important note, is that with GoDaddy, when using a rails app
that's not in the root directory, such as the one above, you have to
include the trailing slash in the address.

http://www.moyerfamily.name/movies (<-- no slash) will through an error.
D006e45cd36977b8719e6066c3217d64?d=identicon&s=25 Robert Hall (Guest)
on 2007-05-06 20:25
Marlon,

So far you are the only success story I've read about running a rails
application on GoDaddy. I've followed your instructions below to the
best of my ability and have made some success but I've yet to get my
rails app up and running. Can you please provide me with a few more
details.

Specifically:
Step 5 changing permissions (how do I do that?)
Can you provide a sample of your database.yml file (with the password
omitted of course)?
Step 1 & 4, provide a sample of the example of the rails app directory
and symbolic link?

Thanks for your help.

Robert Hall
golsombe@gmail.com



Marlon Moyer wrote:
> I've been able to get simple apps to run on GoDaddy.....read that as
> "run" rather than perform.  It usually takes up to 15 seconds for the
> fcgi process to spawn, but once it does, it will run at a decent clip
> for a while.
>
> Steps I've taken.
>
> 1. Set up the rails app directory in the cgi manager.
> 2. Freeze rails and any other gems.  (I've used up to version 1.1.6 on
> GoDaddy)
> 3. Upload the project into a subdirectory of the newly created rails
> app directory
> 4. In the cgi manager, create the symbolic link to your newly uploaded
> app.
> 5. Change permissions on /sitename/public/dispatch.* to 755
> 6. make sure the first line of the dispatch.cgi and the dispatch.fcgi
> is #!/usr/local/bin/ruby
> 7. Once it works in cgi, try fcgi by editing the .htaccess file again
> and changing this line RewriteRule ^(.*)$ dispatch.cgi [QSA,L] to
> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
> 8. I've also been able to use a domain pointer to point directly at
> the rails app.  Just use the domain management control panel to point
> your extra domain to the /rails_apps/sitename/public directory.
>
>
> Lest you think I'm full of BS :), this little test site is running on
> fcgi on godaddy's servers right now.  Please be kind, it's just a test
> site :)
>
> http://www.moyerfamily.name/movies/
>
> Another important note, is that with GoDaddy, when using a rails app
> that's not in the root directory, such as the one above, you have to
> include the trailing slash in the address.
>
> http://www.moyerfamily.name/movies (<-- no slash) will through an error.
50c1f2f516dfe5b6256ec9f62a949ba6?d=identicon&s=25 Marlon Moyer (Guest)
on 2007-05-09 20:34
(Received via mailing list)
I wouldn't call it a success.....it just barely runs :)

Step 5: my ftp client (filezilla) allows me to right click on a file
on the server and set permissions

Here's my database.yml

development:
  adapter: mysql
  database: movielist
  username: root
  password: xxxxxx
  host: localhost

production:
  adapter: mysql
  database: ********
  username: *******
  password: ******
  port: 3306
  host: mysql129.secureserver.net

The database, username, password & host should all be gleaned from
your sql manager app on godaddy.

as for the rails_apps directory.  It's nothing special.  It's
something you create in the CGI admin screen of goDaddy.  The
directory can be named anything you want it to be named. The CGI admin
app will automatically throw an .htaccess file into it.

The symbolic links are really needed.  They just make it easier to
navigate to your rails app.  e.g. my movies app is actually at
http://www.moyerfamily.name/rails_apps/movielist/ the symbolic link
just allows me to access it via http://www.moyerfamily.name/movies/

HTH,

Marlon
Cc4f24e41cec5fc9c22a4a2ff65ce49a?d=identicon&s=25 Guest (Guest)
on 2007-06-14 16:27
Marlon,

Will you please post your dispatch.cgi, dispatch.fcgi, and .htaccess
files
(.htaccess file for both the rails_apps and movies directories :)

Thanks!
F6b66b8d0cca2069f4d4704ea6bc1533?d=identicon&s=25 Mahesh Seeram (umamahesh)
on 2007-09-04 09:23
 The CGI admin app will automatically throw an .htaccess file, is it
needed to change in .htacess file while deploying rails application
030c0c13e037649e21f915513a4780d9?d=identicon&s=25 Islam Elhamay (hamaky)
on 2010-08-23 00:44
Ranjan wrote:
> Hi All.
> I am a developer working for Ruby On Rails project. I am trying to
> deploy my ruby project on godaddy shared server, but i am unable to
> browse the application and i am not getting any help from the support
> team of hosting server. Can any one help me to solve the problem. It
> would be grateful for me if anyone suggest me what to do.
>
> Thanks in advance for your help

Hi Ranjan,

I think this article can help you solve your issues ...

http://www.bigbluebrains.com/index.php/2010/08/04/...

Hamaky
37f51e0d0c7a647a45c89fdf96cb4b37?d=identicon&s=25 Senthil Nambi (senthilnambi)
on 2010-09-26 23:24
I've to agree with John. Shared hosting is nothing but a headache, went
through all that a while back.

A shameless plug, I wrote a script that makes Rails deployments a
breeze. http://ezror.com

If you're interested I can get your suited with some free licenses and
point you toward some good,cheap web hosts. I don't get referral fee or
anything, just good karma I figured. And I use the personally.

-sunny

Ranjan wrote:
> Hi All.
> I am a developer working for Ruby On Rails project. I am trying to
> deploy my ruby project on godaddy shared server, but i am unable to
> browse the application and i am not getting any help from the support
> team of hosting server. Can any one help me to solve the problem. It
> would be grateful for me if anyone suggest me what to do.
>
> Thanks in advance for your help
3b2e501d6c24f1a4a7819f2aeb90b95a?d=identicon&s=25 Peter Wang (haiyang5210)
on 2011-02-10 04:38
Step by step deploy a Ruby application on GoDaddy
http://wanghaiyang.me/archives/166
Dcb1f6a382061ff792e1857a051e3ad2?d=identicon&s=25 king key (kingkey)
on 2011-06-15 14:09
www.inebuy.net

windows 7
office 2007
office 2010
office visio key
windows visio key
windows xp key

wholesale windows 7 key
wholesale office 2007 key
wholesale office 2010 key
wholesale office visio key
wholesale windows visio key
wholesale windows xp key
Cheap and easy to use

Do not miss passing through!
Select only expensive non-election!

www.inebuy.net
This topic is locked and can not be replied to.