Skip to content
Snippets Groups Projects
Commit 3bf9b012 authored by jurgenhaas's avatar jurgenhaas
Browse files

Always use absolute path for volumes

parent 523ebf3e
No related branches found
Tags v1.1.1
No related merge requests found
......@@ -279,7 +279,7 @@ class Handler extends BaseHandler {
$projectRoot = getenv('CI_PROJECT_DIR');
if (empty($projectRoot)) {
$projectRoot = '.';
$projectRoot = getcwd();
}
else {
$projectRoot = $options['ci_home'] . $projectRoot;
......
......@@ -42,7 +42,7 @@ services:
SSH_AUTH_SOCK: /ssh-agent
{% endif %}
volumes:
- {{ projectroot }}/:/var/www/html
- {{ projectroot }}:/var/www/html
- {{ projectroot }}/drush:/etc/drush
{% if php.ssh %}
- $SSH_AUTH_SOCK:/ssh-agent
......@@ -78,7 +78,7 @@ services:
{{ webserver.type|upper }}_BACKEND_HOST: php
{{ webserver.type|upper }}_SERVER_ROOT: /var/www/html/{{ webRoot }}
volumes:
- {{ projectroot }}/:/var/www/html
- {{ projectroot }}:/var/www/html
labels:
traefik.backend: '{{ projectname }}_{{ webserver.type }}_1'
traefik.port: '80'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment