How to install gem on hosting site without installing?

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.

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

Walter D. 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.
RM.

On Jun 7, 2012, at 4:28 PM, renu mehta wrote:

Thanks in advance for any help.
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.

Is Heroku an option for your application?

Walter

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 J.

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?

read this book, it will say How to deploy yr site on Heroku

Thanks


Warm Regards,

Amit 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

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,

Amit 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

On Jun 7, 10:24pm, renu mehta [email protected] 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://
Logging | Heroku Dev Center)

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

Frederick C. wrote in post #1063813:

On Jun 7, 10:24pm, renu mehta [email protected] 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://
Logging | Heroku Dev Center)

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

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.

On Sat, Jun 9, 2012 at 8:20 AM, renu mehta [email protected] 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 :slight_smile:


Hassan S. ------------------------ [email protected]

twitter: @hassan

Heroku is Free for small projects.

Walter