Skip to content

Commit 34b5bab

Browse files
committed
Initial commit
0 parents  commit 34b5bab

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.vagrant/

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Symfony Playground
2+
3+
This is a starter app from Symfony4 for easy forking for new starters.
4+
5+
## Setup
6+
7+
1. Install [Virtualbox](https://www.virtualbox.org/wiki/Downloads)
8+
2. Install [Vagrant](https://www.vagrantup.com/)
9+
3. Run `vagrant plugin install vagrant-hostsupdater`
10+
4. Run `vagrant up`
11+
12+
You now have a web server running on <http://symfony.local>.
13+
14+
## Using the project
15+
16+
You can edit the code directly in this directory to make changes.
17+
You can ssh into the vagrant box with `vagrant ssh`.
18+
Get to the code with `cd /srv/www/app/current`.
19+
Once inside the vagrant box you can run Symfony commands, here are some useful ones:
20+
21+
```sh
22+
# Clear the Symfony cache
23+
$ bin/console cache:clear
24+
```

Vagrantfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
$script = <<SCRIPT
5+
6+
sudo phpdismod xdebug; sudo service php7.2-fpm restart #xoff
7+
cd /srv/www/app/current
8+
#php composer.phar install
9+
SCRIPT
10+
11+
# To add a the box, either build it from the daysailer repo, or get it from someone who did, then run:
12+
# $ vagrant box add banshee.box --name banshee --force
13+
14+
Vagrant.configure("2") do |config|
15+
config.vm.box = "banshee"
16+
config.vm.hostname = "symfony.local"
17+
18+
config.vm.network "private_network", ip: "10.2.0.2"
19+
config.vm.synced_folder "./", "/srv/www/app/current", type: "nfs", mount_options: ["tcp", "actimeo=2"]
20+
config.vm.provision "shell", inline: $script, privileged: false
21+
22+
config.vm.provider "virtualbox" do |vb|
23+
vb.name = "symfony-playground"
24+
vb.memory = 1024
25+
end
26+
27+
end

0 commit comments

Comments
 (0)