facebook

Ruby on rails in ubuntu 16.04

By Tanmoy Ghosh

Ruby on rails in ubuntu 16.04

    PART -1 (Installation)

  1. sudo apt-get update
  2. sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs
  3. cd git clone https://github.com/rbenv/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL
  4. git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL
  5. rbenv install 2.4.1
  6. rbenv global 2.4.1
  7. ruby -v
  8. gem
    install bundler

  9. curl
    -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

    sudo apt-get install -y nodejs
  10. gem install rails -v 5.1.3
  11. rails -v

   Run project  

  1.    rails new myproject
  2.    go to project directory
  3.     bundle install
  4.    rails s

 

Tanmoy Ghosh Author
Sorry! The Author has not filled his profile.
Posts created 1

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top
shares