aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/bootstrap.sh
blob: 7395aa7633d9e2f02e1dff5a5867e0ec04c76442 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

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