- sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
- git clone git://github.com/sstephenson/rbenv.git .rbenv
- echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
- echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
- exec $SHELL
- git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
- exec $SHELL
- rbenv install -v 2.2.4
- ruby --version
- rbenv global 2.2.4
- git clone git://github.com/nodejs/node.git
- cd node
- git checkout v6.0.0
- ./configure
- make
- sudo make install
- sudo su
- git clone https://github.com/isaacs/npm.git
- cd npm/
- exit
- sudo make install
To access webapp running on Amazon instance from laptop, make sure you start rails with "-b 0.0.0.0" option to bind it on all interfaces and configure security groups to allow custom tcp traffic on whichever port rails is listening
No comments:
Post a Comment