Skip to content

Instantly share code, notes, and snippets.

@artursmirnov
Last active August 29, 2015 14:09
Show Gist options
  • Save artursmirnov/52ec02b2f8b57f71bd09 to your computer and use it in GitHub Desktop.
Save artursmirnov/52ec02b2f8b57f71bd09 to your computer and use it in GitHub Desktop.
Setup Ember CLI environment
#!/usr/bin/env bash
# prepare
sudo apt-get update
sudo apt-get install -y build-essential 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
sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
# install nodejs
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
# install npm
curl https://www.npmjs.org/install.sh | sh
npm install -g [email protected]
# install ruby and rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
# install compass
gem install compass
# install global npm packages
npm install -g bower phantomjs ember-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment