How to install gem on hosting site without installing?

17 views
Skip to first unread message

renu mehta

unread,
Jun 7, 2012, 2:58:39 PM6/7/12
to rubyonra...@googlegroups.com
Hello,

I am developing a small site for client and currently their static site
is hosted on godaddy. And they don't want to move to another host for
certain reasons. Godaddy has the following configuration for the plan
that they want to go with :

Support Ruby and MySQL Versions:


Ruby 1.8.4

Ruby on Rails up to 2.3.2

Rubygems 1.3.1

MySQL 5.0.91

And they don't allow any gems to installed if it is not there.

Now, my question is that is it possible for me to get gems that I need
on my local machine and copy/paste in some folder in the apps code so
that I don't have to install it while deploying - and I am still able to
use the gem/plugin? If there is no workaround for it then its going to
take a long-long time to finish the project if I have to code everything
myself.

Thanks in advance for any help.

RM.

--
Posted via http://www.ruby-forum.com/.

Walter Lee Davis

unread,
Jun 7, 2012, 4:23:48 PM6/7/12
to rubyonra...@googlegroups.com
You can vendor all the gems, including Rails, but you're going to be hamstrung by that creaky-old Ruby, which may be too old for most versions of Rails still running and certainly will cause havoc with your other gems. That you can't do anything about. I wouldn't touch GoDaddy with a barge pole anyway, but this sounds like an untenable situation for anything written in the last two years.

Walter

>
> RM.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>

renu mehta

unread,
Jun 7, 2012, 4:28:16 PM6/7/12
to rubyonra...@googlegroups.com
Walter Davis wrote in post #1063613:
> On Jun 7, 2012, at 2:58 PM, renu mehta wrote:
>
>> Ruby 1.8.4
>> on my local machine and copy/paste in some folder in the apps code so
>> that I don't have to install it while deploying - and I am still able to
>> use the gem/plugin? If there is no workaround for it then its going to
>> take a long-long time to finish the project if I have to code everything
>> myself.
>>
>> Thanks in advance for any help.
>
> You can vendor all the gems, including Rails, but you're going to be
> hamstrung by that creaky-old Ruby, which may be too old for most
> versions of Rails still running and certainly will cause havoc with your
> other gems. That you can't do anything about. I wouldn't touch GoDaddy
> with a barge pole anyway, but this sounds like an untenable situation
> for anything written in the last two years.
>
> Walter

I may be able to convince them to move another host. But then what are
the good and cheap options for hosting which give a little control
regarding the gems but doesn't burden me with setting up everyother
thing(i.e. ruby, rails, mysql, phpmyadmin etc.)- basically cheap,
reliable managed hosting.

Thanks.

Walter Lee Davis

unread,
Jun 7, 2012, 5:10:08 PM6/7/12
to rubyonra...@googlegroups.com
Is Heroku an option for your application?

Walter

>
> Thanks.
> RM.
>
> --
> Posted via http://www.ruby-forum.com/.
>

renu mehta

unread,
Jun 7, 2012, 5:24:31 PM6/7/12
to rubyonra...@googlegroups.com
I haven't worked much with heroku before- basically learning. Do they
support mysql? Their logging was not good before as it allowed only last
100 lines. Has it changed recently? What other limitations does it have
in the production enviornment?

Matt Jones

unread,
Jun 8, 2012, 6:53:31 AM6/8/12
to rubyonra...@googlegroups.com


On Thursday, 7 June 2012 17:24:31 UTC-4, Ruby-Forum.com User wrote:
I haven't worked much with heroku before- basically learning. Do they
support mysql? Their logging was not good before as it allowed only last
100 lines. Has it changed recently? 

Not sure if it's "changed", but did you try the -n option to `heroku logs`? Will give you as many lines as you care to look at...

--Matt Jones 

Pandya, Amit

unread,
Jun 7, 2012, 3:06:00 PM6/7/12
to rubyonra...@googlegroups.com
yes, you can do copy paste but not reliable solution.
What OS are you using? let me know I will give you few steps for copy and paste

Thanks

-- 
Warm Regards,

A
mit Pandya

End is not end, In-fact E.N.D is "EFFORT NEVER DIES" 
If you get NO in answer, remember N.O. is "NEXT OPPORTUNITY"
Impossible just separate the word - I M Possible 


Pandya, Amit

unread,
Jun 7, 2012, 5:28:33 PM6/7/12
to rubyonra...@googlegroups.com
read this book, it will say How to deploy yr site on Heroku


Thanks

-- 
Warm Regards,

A
mit Pandya

End is not end, In-fact E.N.D is "EFFORT NEVER DIES" 
If you get NO in answer, remember N.O. is "NEXT OPPORTUNITY"
Impossible just separate the word - I M Possible 


Frederick Cheung

unread,
Jun 9, 2012, 7:14:35 AM6/9/12
to Ruby on Rails: Talk


On Jun 7, 10:24 pm, renu mehta <li...@ruby-forum.com> wrote:
> I haven't worked much with heroku before- basically learning. Do they
> support mysql? Their logging was not good before as it allowed only last
> 100 lines. Has it changed recently? What other limitations does it have
> in the production enviornment?
>

Heroku's logging doesn't have this sort of limit these days (https://
devcenter.heroku.com/articles/logging)

The free database option is still a shared postgres database, but you
can buy add ons to add a mysql database if that's what you need.

I really wouldn't go near that go daddy hosting you mentioned: both
the ruby and rails versions are antiquated and are no longer
maintained - 2.3.2 isn't even the latest version of 2.3.x, so you're
missing out on a lot of bug fixes and security issues.

Fred

renu mehta

unread,
Jun 9, 2012, 11:20:30 AM6/9/12
to rubyonra...@googlegroups.com
Frederick Cheung wrote in post #1063813:
As I am working for a small non-profit charity organization hence cost
of hosting is a issue. Also, as I am not very comfortable with
installing and setting up the whole environment myself hence I want to
go for a hosting plan in which I get a basic working setup. Dreamhost
does offer a shared hosting plan free for charity organizations. They
offer the following setup :

Ruby 1.8.7, Rails 3.0.3 and Mysql 5.1

And I can install any gem/plugin that I need.

I am leaning towards DreamHost shared hosting plan. Any reviews about
hosting a site on DreamHost with a shared plan?

Thanks.

Walter Lee Davis

unread,
Jun 9, 2012, 6:26:46 PM6/9/12
to rubyonra...@googlegroups.com
Heroku is Free for small projects.

Walter

Hassan Schroeder

unread,
Jun 9, 2012, 7:22:19 PM6/9/12
to rubyonra...@googlegroups.com
On Sat, Jun 9, 2012 at 8:20 AM, renu mehta <li...@ruby-forum.com> wrote:

> offer the following setup :
>
> Ruby 1.8.7, Rails 3.0.3 and Mysql 5.1

So you're getting a version of Ruby that's no longer getting bug fixes
and will be fully EOL'd in a year, and a very old version of Rails lacking
current security fixes (the 3.0.x branch is now at 3.0.13, never minding
that current Rails is at 3.2.5).

Awesome deal :-)

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Reply all
Reply to author
Forward
0 new messages