Skip to content

MohammadZayd/Vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Vagrant Web Project

This Vagrant configuration sets up a virtual machine for your project using the Ubuntu Trusty 64 box. It includes network configurations, port forwarding, and folder syncing.


Box Configuration

config.vm.box = "ubuntu/trusty64"

Network Configurations

Public Network

config.vm.network "public_network", ip: "192.168.100.66", bridge: "Intel(R) Wi-Fi 6E AX211 160MHz"

This configures a public network with a specified IP and bridge connection. Adjust the IP address and bridge settings according to your requirements.

Folder Syncing

Synced Folder

config.vm.synced_folder "C:\\Users\\zayda\\Desktop\\project\\web", "/var/www/html"

This syncs the local folder on your host machine to the specified folder on the guest machine. Update the paths based on your project structure.

Provisioning

Shell Script

config.vm.provision "shell", path: "C:\\Users\\zayda\\Desktop\\project\\scripts\\setup.sh"

Runs a shell script (setup.sh) during provisioning. Adjust the script path as needed

Apache Configuration

config.vm.provision "shell", inline: "sudo echo \"DocumentRoot /var/www/html/\" >> /etc/apache2/apache2.conf"

Configures Apache by appending the DocumentRoot setting to the Apache configuration file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages