vagrant-wordpress-bintz/bin/setup

17 lines
651 B
Plaintext
Raw Permalink Normal View History

2015-04-30 13:54:25 +00:00
#!/bin/bash
command -v VBoxManage || { echo "Install VirtualBox! https://www.virtualbox.org/wiki/Downloads"; exit 1; }
command -v vagrant || { echo "Install Vagrant! https://www.vagrantup.com/downloads.html"; exit 1; }
command -v rvm || { echo "Install rvm! http://rvm.io/"; exit 1; }
2015-07-05 17:17:52 +00:00
[[ -d ~/.nvm ]] || { echo "Install nvm! https://github.com/creationix/nvm"; exit 1; }
2015-04-30 13:54:25 +00:00
command -v bundle || { echo "Install bundler! gem install bundler"; exit 1; }
bundle install
npm install
vagrant up
echo "You can now visit http://localhost:8080 and configure your WordPress site."
echo "Accept all defaults in the UI to initialize the database."
echo "Yeah!"