From 2f8d057e668dcc21ff0023dd832b8e50e2026138 Mon Sep 17 00:00:00 2001 From: sabadev Date: Sat, 22 May 2021 00:56:07 -0400 Subject: [PATCH] Added a deployment script. --- Vagrantfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index b9834eb..3fa4319 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,6 +26,13 @@ cd /vagrant sudo stack --allow-different-user exec website config.json SCRIPT +$deploy = <<-SCRIPT +cd /vagrant +sudo stack --allow-different-user install +cd /root/.local/bin +tar -cvjf website.tar.bz website +SCRIPT + Vagrant.configure("2") do |config| config.vm.box = "debian/buster64" @@ -45,4 +52,5 @@ Vagrant.configure("2") do |config| config.vm.provision "test", type: "shell", run: "never", inline: $test config.vm.provision "run", type: "shell", run: "never", inline: $run config.vm.provision "runconf", type: "shell", run: "never", inline: $runconf + config.vm.provision "deploy", type: "shell", run: "never", inline: $deploy end -- 2.20.1