Skip to content

Commit

Permalink
Revert DEPLOY_FOLDER environment variable (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof authored Nov 26, 2024
1 parent e0d452f commit 91cd1e6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"__devops_traefik_stack_include_ui": "no",
"__devops_traefik_docker_network": "{{ cookiecutter.__devops_stack_name }}_{{ cookiecutter.__devops_swarm_stack_network }}",
"__devops_varnish_version": "7.6",
"__devops_db_version": "14",
"__devops_db_version": "14.15",
"__devops_db_password": "{{ random_ascii_string(12) }}",
"__backend_addon_git_initialize": "0",
"__backend_addon_format": "1",
Expand Down
1 change: 0 additions & 1 deletion project/{{ cookiecutter.__folder_name }}/devops/.env_dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ DEPLOY_ENV=prod
DEPLOY_HOST={{ cookiecutter.hostname }}
DEPLOY_PORT=22
DEPLOY_USER=plone
DEPLOY_FOLDER=/srv/{{ cookiecutter.project_slug }}/data
DOCKER_CONFIG=.docker
STACK_NAME={{ cookiecutter.__devops_stack_name }}
1 change: 0 additions & 1 deletion project/{{ cookiecutter.__folder_name }}/devops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ DEPLOY_ENV=prod
DEPLOY_HOST={{ cookiecutter.hostname }}
DEPLOY_PORT=22
DEPLOY_USER=plone
DEPLOY_FOLDER=/srv/{{ cookiecutter.project_slug }}/data
DOCKER_CONFIG=.docker
STACK_NAME={{ cookiecutter.__devops_stack_name }}
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
project_folders:
# Path to store {{ cookiecutter.hostname }} postgres data
- path: {{ "\"{{ lookup('ansible.builtin.env', 'DEPLOY_FOLDER', default='/srv/plone/data') }}\"" }}
- path: "/srv/{{ cookiecutter.project_slug }}/data"
owner: 999
group: 999
mode: "0750"
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ volumes:
vol-site-data:
driver_opts:
type: none
device: ${DEPLOY_FOLDER:-/srv/{{ cookiecutter.project_slug }}/data}
device: "/srv/{{ cookiecutter.project_slug }}/data"
o: bind

networks:
Expand Down

0 comments on commit 91cd1e6

Please sign in to comment.