0

My goal is to deploy an existing Rails app on a machine. Oh, and the machine is on a handful of terminals in a remote community in the north of Australia. Oh, and I can't rely on there being Internet access for troubleshooting or admin purposes.

I'd like to package the app with a fresh copy of Rails and all of the apps dependencies (some of which must be built natively) so that the server can be run and a browser used as the front-end. The remote machines are modern Macs, and I should be able to replicate the configuration for testing here.

I've spotted some projects like Locomotive and Joyent Slingshot, as mentioned in this thread, but both of those projects seem to have been abandoned, and this link is Windows-specific.

Does anyone have any guidance as to what the modern way of doing this is? A community project thanks you in advance :)

Community
  • 1
  • 1
jogloran
  • 952
  • 1
  • 12
  • 23

1 Answers1

1

Well, assuming those remove machines have Ruby available, you could use Bundler to freeze all your gems in your project:

bundle package

Read more at getbundler.com

Ariejan
  • 10,910
  • 6
  • 43
  • 40
  • Does Bundler actually wrap up prebuilt C extensions and the like? It seems to me that it just takes a snapshot of your Gem configuration so that you can reproduce it on the remote machine. Ideally I'd like everything to be in the package, ready to run the Rails server. – jogloran Dec 04 '10 at 05:19