srboisvert
srboisvert

Reputation: 12759

Ruby on Rails offline programming

I am going to be away from the internet for a few weeks and would still like to get a project done. What steps should I take to make sure I have access to the things I need (ruby and ROR) while I will be disconnected?

Upvotes: 3

Views: 629

Answers (6)

ohho
ohho

Reputation: 51941

when offline, the following are hard to get:

  • gems
  • docs
  • rails expert blogs
  • stackoverflow ;-)

so,

  • gem install as much as you can
  • download all the railscasts
  • keep one or two rails book around
  • and find a place with internet wifi

and most importantly:

  • un-plug yourself 2 days before the real offline, that's called staging ;-)

Upvotes: 7

edebill
edebill

Reputation: 7715

Get your app (in its current state) up and running on your laptop. Then shut off wireless and make sure it still goes. Don't just guess at what gems and things you'll need - make sure you see it actually run. Don't forget things like database engines and queuing servers. Then start guessing about other gems and items you might need.

Make sure that

gem server

will start up a webserver and let you browse the docs for all your installed gems.

Upvotes: 1

latentflip
latentflip

Reputation: 1883

This may not affect you, but it's bitten me before.

If you are using a javascript library such as jQuery, and are linking to Google's Hosted Libraries rather than a local one, you may find jQuery stops working when you are offline.

Download and link to a local copy before you go.

Upvotes: 1

robotmay
robotmay

Reputation: 1316

Download every Ruby gem. All of them!

You never know when you'll need to extract EXIF data, or something.

Upvotes: 0

Henrik Hansen
Henrik Hansen

Reputation: 2190

If you use version control, make sure you can work offline. DVCS do this well, I've heard SVN can work offline if you have a local SVN server.

Running the Rails app on localhost will allow you to access it with your browser locally.

Apart from this it would also be nice to have documentation offline too. Download everything you can think of: Rails, Ruby, Shell, libs etc. Or use books.

Upvotes: 2

John Topley
John Topley

Reputation: 115372

  • Make sure you have local copies of any documentation you need (railsapi.com lets you download the Rails docs)
  • Make sure you have all the gems/plugins you need

Upvotes: 1

Related Questions