- XAMPP for Windows: https://www.apachefriends.org/de/download.html
- Download Xdebug for:
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = '2' | |
| @script = <<SCRIPT | |
| # Fix for https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250 | |
| if ! grep -q "ubuntu-xenial" /etc/hosts; then | |
| echo "127.0.0.1 ubuntu-xenial" >> /etc/hosts | |
| fi |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Basic Template</title> | |
| <meta name="description" content="The HTML5 Herald"> | |
| <meta name="author" content="SitePoint"> | |
| <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = '2' | |
| @script = <<SCRIPT | |
| # Fix for https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1561250 | |
| if ! grep -q "ubuntu-xenial" /etc/hosts; then | |
| echo "127.0.0.1 ubuntu-xenial" >> /etc/hosts | |
| fi |
| # Section to add to Vagrantfile | |
| config.vm.provision "shell", run: "always", inline: <<-SHELL2 | |
| echo -e "\n------------------------------------------- Composer install and config\n" | |
| curl -s https://getcomposer.org/installer | php | |
| sudo mv composer.phar /usr/local/bin/composer | |
| cd /var/www/dev && php composer.phar install | |
| sudo cp /var/www/dev/dev_ops/git/post-merge.sh /var/www/dev/.git/hooks | |
| SHELL2 |
| #!/usr/bin/env bash | |
| # Deploy staging branch | |
| # git pull origin staging | |
| echo ".....preparing commands" | |
| vagrant ssh -c " | |
| cd /var/www/staging | |
| if [ -d .git ]; then | |
| echo ......initialize git; |
| try { | |
| $dbh = new PDO("sqlsrv:Server=localhost;Database=mydatabase", "username", "password"); | |
| echo "CONNECTED"; | |
| } catch (PDOException $e) { | |
| echo "Failed: " . $e->getMessage(); | |
| } |