Skip to content

Commit

Permalink
feat(#68): Edit provision.sh and Vagrantfile
Browse files Browse the repository at this point in the history
With the changes made, the deployment with Vagrant already works.

Co-authored-by: Tomas Camero <[email protected]>
  • Loading branch information
mrarjona and TomasCB24 committed Dec 12, 2022
1 parent 4947b9e commit 76054d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
11 changes: 0 additions & 11 deletions Vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,9 @@ Vagrant.configure("2") do |config|
# NOTE: This will enable public access to the opened port
config.vm.network "forwarded_port", guest: 8000, host: 8080

# Sync the project directory with the guest
config.vm.synced_folder "../templates", "/var/www/html"

# Run the provisioning script to set up the VM
config.vm.provision "shell", path: "provision.sh"

# Install Apache and PHP
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apache2 libapache2-mod-php
SHELL



# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
Expand Down
10 changes: 5 additions & 5 deletions Vagrant/provision.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
sudo apt update
sudo apt upgrade y
sudo apt install -y git python3 python3-pip docker docker.io screen
sudo apt install default-libmysqlclient-dev
docker pull mysql:5.7
sudo apt upgrade -y
sudo apt install -y git python3 python3-dev python3-pip
sudo apt install -y build-essential libssl-dev libmysqlclient-dev

git clone https://github.com/innosoft-innoweb/innosoft-innoweb-1
cd innosoft-innoweb-1
pip3 install -r requirements.txt
sudo pip3 install -r requirements.txt

0 comments on commit 76054d5

Please sign in to comment.