Skip to content

Instantly share code, notes, and snippets.

@MiquelAdell
Last active February 27, 2016 12:37
Show Gist options
  • Save MiquelAdell/0074c688fa8e1d38db8f to your computer and use it in GitHub Desktop.
Save MiquelAdell/0074c688fa8e1d38db8f to your computer and use it in GitHub Desktop.
# install ansible
sudo apt-get install software-properties-common -y
sudo apt-add-repository ppa:ansible/ansible -y
sudo apt-get update -y
sudo apt-get install ansible -y
# install virtual box
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list'
sudo apt-get update -y
sudo apt-get install virtualbox nfs-kernel-server dkms -y
# install vagrant and vagrant plugins
sudo apt-get install vagrant -y
sudo apt-get install virtualbox-dkms -y
vagrant plugin install vagrant-bindfs
vagrant plugin install vagrant-hostmanager
# install ruby greater than 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 rbenv ruby-build -y
### INSTALL RUBY https://gorails.com/setup/ubuntu/14.04
# install composer and its dependencies
sudo apt-get install curl ph p5-cli git -y
# create project folder and cd to it
mkdir miqueladell.com
cd miqueladell.com
# clone trellis (virtual machine management)
git clone https://github.com/roots/trellis.git && rm -rf trellis/.git
# clone miqueladell site
git clone https://github.com/MiquelAdell/base_bedrock site
# install external ansible roles/packages
cd trellis
ansible-galaxy install -r requirements.yml
# install theme and plugin dependencies
sudo apt-get install php5-common php5-curl nodejs npm -y
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g bower
sudo npm install -g gulp
# install the theme
cd ../site
# for development
git clone https://github.com/MiquelAdell/cordills site/web/app/themes/cordills
# for production
composer update
# build the theme
cd web/app/themes/cordills
npm install
bower install
gulp
# vagrant up, at last
cd ../../../../../trellis
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment