File tree 1 file changed +24
-2
lines changed 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -547,17 +547,39 @@ libffi-dev rbenv
547
547
git clone https://github.com/rbenv/rbenv.git /home/vagrant/.rbenv
548
548
echo ' export PATH="$HOME/.rbenv/bin:$PATH"' >> /home/vagrant/.bashrc
549
549
echo ' eval "$(rbenv init -)"' >> /home/vagrant/.bashrc
550
- # exec $SHELL
551
550
552
551
git clone https://github.com/rbenv/ruby-build.git /home/vagrant/.rbenv/plugins/ruby-build
553
552
echo ' export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> /home/vagrant/.bashrc
554
- # exec $SHELL
555
553
556
554
rbenv install 2.5.3
557
555
rbenv global 2.5.3
558
556
apt-get -y install ruby` ruby -e ' puts RUBY_VERSION[/\d+\.\d+/]' ` -dev
559
557
gem install rails -v 5.2.1
560
558
559
+ # Install socket-wrench Repo
560
+
561
+ cd /var/www
562
+ git clone -b release https://github.com/svpernova09/socket-wrench.git
563
+ chown vagrant:vagrant /var/www/socket-wrench
564
+ chmod -R 777 /var/www/socket-wrench/storage
565
+ chmod -R 777 /var/www/socket-wrench/bootstrap
566
+ cp /var/www/socket-wrench/.env.example /var/www/socket-wrench/.env
567
+ /usr/bin/php /var/www/socket-wrench/artisan key:generate
568
+ /usr/bin/php /var/www/socket-wrench/artisan migrate
569
+ /usr/bin/php /var/www/socket-wrench/artisan db:seed
570
+
571
+ sudo tee /etc/supervisor/conf.d/socket-wrench.conf << EOL
572
+ [program:socket-wrench]
573
+ command=/usr/bin/php /var/www/socket-wrench/artisan websockets:serve
574
+ numprocs=1
575
+ autostart=true
576
+ autorestart=true
577
+ user=vagrant
578
+ EOL
579
+
580
+ supervisorctl update
581
+ supervisorctl start socket-wrench
582
+
561
583
# One last upgrade check
562
584
563
585
apt-get -y upgrade
You can’t perform that action at this time.
0 commit comments