Skip to content

Instantly share code, notes, and snippets.

@az-iar
Created February 5, 2015 05:22
Show Gist options
  • Save az-iar/89758a232b14d13a4623 to your computer and use it in GitHub Desktop.
Save az-iar/89758a232b14d13a4623 to your computer and use it in GitHub Desktop.
Homestead 2.0 after.sh
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.''
sudo apt-get update && sudo apt-get upgrade
# install RVM with latest ruby
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
# install mailcatcher
gem install -no-rdoc --no-ri mailcatcher
# Set mailcatcher to start on startup
sudo tee /etc/init/mailcatcher.conf <<EOL
description "Mailcatcher"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec /usr/bin/env $(which mailcatcher) --foreground --http-ip=0.0.0.0
EOL
# start mailcatcher
sudo service mailcatcher start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment