aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/bootstrap.sh
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-04 21:48:02 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-04 21:48:02 +0100
commitf922cd5dafa02a465a76464a3fe8d7552ae3bb59 (patch)
tree59ec596947eac1594e668ab011a19bb0a5012aa2 /vagrant/bootstrap.sh
parent486234e88955306e67dbdfca4027392328f81c56 (diff)
downloadhmnoweb-f922cd5dafa02a465a76464a3fe8d7552ae3bb59.tar.gz
hmnoweb-f922cd5dafa02a465a76464a3fe8d7552ae3bb59.tar.bz2
hmnoweb-f922cd5dafa02a465a76464a3fe8d7552ae3bb59.zip
Reboot vagrant integration.
Use FreeBSD 10.3, and a setup more similar to what we have on the production server. Just installing basic dependensies for now.
Diffstat (limited to 'vagrant/bootstrap.sh')
-rw-r--r--vagrant/bootstrap.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index 7395aa7..c06b929 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -1,12 +1,9 @@
-#!/usr/bin/env bash
+#!/bin/sh
+pkg upgrade -y -q -f
+pkg install -y -q ruby rubygem-bundler postgresql93-server postgresql93-client nginx
-pacman -Suyq --noconfirm
-pacman -Sq ruby gcc make sqlite3 nodejs imagemagick --noconfirm
-echo "export GEM_HOME=`gem env gemdir`" > /etc/profile.d/rubygems.sh
-source /etc/profile.d/rubygems.sh
-gem install bundler --no-rdoc --no-ri --no-user-install
-cd /vagrant
-./script/setup
-cp vagrant/rails.service /usr/lib/systemd/system
-systemctl enable rails
-systemctl start rails
+echo 'postgresql_enable="YES"' >> /etc/rc.conf
+echo 'nginx_enable="YES"' >> /etc/rc.conf
+
+service postgresql initdb
+service -R