跳到主要內容

發表文章

目前顯示的是有「bundler」標籤的文章

How to set Ruby on Rails Environment in mac (mac OS)?

1. install xcode in apple App Stor 2. curl -L https://get.rvm.io | bash -s stable 3. rvm -v 4. echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.zshrc 5. rvm list known 6. rvm install 2.5.1 7. ruby -v 8. rvm rubygems current 9. gem -v 10. $ brew install git 11. $ git config --global user.name "YourName" 12. $ git config --global user.email "yourmail@gmail.com"  13. gem install bundler 14. gem install rails

How to set Ruby on Rails Environment in Linux (Ubuntu)?

Update your package manager first: $ sudo apt-get update This must finish without error or the following step will fail. Install  Curl : $ sudo apt-get install curl You’ll use Curl for installing  RVM . $ \curl -L https://get.rvm.io | bash vi ~/.bashrc # This loads RVM into a shell session. [[ - s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" restart terminal. $ rvm get stable --autolibs=enable $ rvm install ruby $ rvm use 2.5.1 --default Nodejs $ sudo apt-get install nodejs $ gem install bundler $ gem install nokogiri $ gem install rails $ rails -v $ rails new AppName $ cd AppName $ rails s