I have finished the Michael Hartl RoR Tutorial, it took me around 8 months due to my day job getting in the way so I forget some of the early on stuff. I'm setting out to now make something of my own when I realized I was not sure how to proceed... Here's my question.
Do I need to install rails every time I start a new app? Is it correct that I think of every app as a website?
To expand, I have the following directory structure ~/Rails_Projects/app1 ~/Rails_Projects/app2 Do I need to install rails into every app directory? Or should I install rails only once in the 'Rails_Projects' directory and just use the 'rails new' command for new apps.
It is correct to think of every rails application as a web site, the rails software itself can then be considered either:
gem install rails
or bundle install
or bundle install --deployment
In either case you would define which version of rails your application/website uses in its gemfile
When using multiple rails versions it is sometimes necessary to use multiple ruby versions too. For multiple versions of ruby (versions like 1.9.2 or 2.0.0, not instances of the same version) you can use a tool such as ruby version manager (or pik on windows) to allow them to coexist on one server.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.