Fix xdebug issues with phpstorm

This commit is contained in:
Dane Everitt 2019-03-02 17:08:00 -08:00
parent 12fe2c844d
commit 2a7a64dd6a
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
**/.DS_Store
.data/**
.docker-sync/**
.idea

8
Vagrantfile vendored
View File

@ -28,8 +28,12 @@ Vagrant.configure("2") do |config|
app.vm.provider "docker" do |d|
d.image = "quay.io/pterodactyl/vagrant-panel"
d.create_args = ["-it", "--add-host=host.pterodactyl.test:172.17.0.1",
"--add-host=daemon.pterodactyl.test:192.168.50.4", "--add-host=wings.pterodactyl.test:192.168.50.3"]
d.create_args = [
"-it",
"--add-host=host.pterodactyl.test:172.17.0.1",
"--add-host=daemon.pterodactyl.test:192.168.50.4",
"--add-host=wings.pterodactyl.test:192.168.50.3",
]
d.ports = ["80:80", "8080:8080", "8081:8081"]
if ENV['FILE_SYNC_METHOD'] === 'docker-sync'

View File

@ -47,9 +47,10 @@ opcache.enable_cli = 1
EOF
cat >> /etc/php/7.2/fpm/conf.d/20-xdebug.ini <<EOF
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.remote_host=host.pterodactyl.test
xdebug.remote_enable = 1
xdebug.remote_host = host.docker.internal
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
EOF
# Install development dependencies