Reputation: 6029
Is there anything to make the rails development portable across operating systems (with prerequisite of ruby and rails installed in all OS)?
For example:
Add necessary gems to "Gemfile" and run "bundle install"
Expectation: All dependencies must be installed within "iApp" folder
Copy the iApp folder to a linux machine (Rails 3.2 installed already)
Expectation: It should work outof the box without running "bundle install"
Will RVM solve this problem? or is there any solution for this?
Upvotes: 2
Views: 318
Reputation: 1837
You can use bundle package to get most of the benefits of this. You'll still need to run bundle, but it won't call out to any remote repositories.
See: http://gembundler.com/bundle_package.html
Note that your idea for having completely portable gems will be broken by having native gems or gems that link against native packages (this will require a recompile on each new machine). Again, 'bundle package' takes care of this for you.
Upvotes: 1
Reputation: 3212
You are going to need to be more specific of what your "dependancies" are.
Also, many gems are OS specific, so just copying the gems between machines probably won't work for you.
Any reason why you don't want to do a bundle install
on the Linux machine?
Upvotes: 1