3 ms·
Some comments & questions from someone who's worked on something similar: -What's extglob used here for? I don't see any regexes. -What are libffi-dev and lib
by mattyb 16y ago
Some comments & questions from someone who's worked on something similar:
-What's extglob used here for? I don't see any regexes.
-What are libffi-dev and libyaml-dev for? I assume some common gems depend on them. If so, which? (I'm just getting into Rails.)
-Git in the Maverick repos is old (1.7.1, which was released in April). Installing it from source is probably a better idea.
-You should probably use RVM to install Ruby, since its 1.9.2-head target won't require you to keep updating your script with 1.9.2's patchlevel.
-In my rails3.sh (which I should really publish), I didn't need to `gem install bundler` in order for `bundle install` to work. Probably because `rails` depends on `bundler`.
-That sudo check is neat, and I'd like to lift it; what's this script's license?
- joshfng 16y agoextglob is in there for future improvements. I plan to make it robust enough to accept parameters in the future. When building Ruby the output complained about some missing deps. libffi-dev and libyaml-dev made Ruby stop complaining about them :) Bundler is installed on the system because you don't have to install Rails on the system. You could simply put Ruby on there, install bundler then when you upload your app and run "bundle" it will pull down Rails and any gems your app depends on. Having Bundler available on the system is needed if you don't install the Rails gem system wide. Use the script however you see fit and feel free to take from it what you like :)