|
1 | 1 | project_name: StoryMapJS
|
2 | 2 | service_name: "{{ project_name|lower }}"
|
3 | 3 | gitdeploy_version: "1.0.6"
|
4 |
| -python_version: "3.8.2" |
5 |
| -python: /home/apps/sites/StoryMapJS/.venv/bin/python |
| 4 | +python_version: "3.10.2" |
| 5 | +python: /home/apps/sites/StoryMapJS.{{ python_version }}/.venv/bin/python |
6 | 6 | service_port: "{{ storymap_port }}"
|
7 | 7 | nginx_template: storymap.conf
|
8 | 8 | nginx_client_max_body_size: 20M
|
@@ -39,11 +39,20 @@ init_env_common:
|
39 | 39 | PG_PASSWORD: "{{ vault_pg_password }}"
|
40 | 40 |
|
41 | 41 | install_root: "/home/apps/sites"
|
42 |
| -deploy_dir: "{{ install_root }}/{{ project_name }}" |
43 |
| -application_dir: "{{ deploy_dir }}" # application dir could be a subdirectory |
44 |
| -env_file: "{{ deploy_dir }}/.env" |
45 |
| -envrc_file: "{{ deploy_dir }}/.envrc" |
46 |
| -virtualenv: "{{ deploy_dir }}/.venv" |
| 42 | + |
| 43 | +# We are experimenting with using a project-name symlink to a python-versioned |
| 44 | +# deployment location to facilitate virtualenv builds for python upgrades. Ideally, |
| 45 | +# this means git-deploy would support these concepts orthogonally without resorting to |
| 46 | +# using the application_dir in lieu of the deploy_dir as a path to the environment. |
| 47 | +# For now, since the application dir happens to be the root of the repository, it |
| 48 | +# seems like this will work, but we may want to re-think some of these variables in |
| 49 | +# git-deploy. We may also want to introduce the symlinking as a deployment feature. |
| 50 | + |
| 51 | +deploy_dir: "{{ install_root }}/{{ project_name }}.{{ python_version }}" |
| 52 | +application_dir: "{{ install_root }}/{{ project_name }}" # This actually a symlink not managed by git-deploy |
| 53 | +env_file: "{{ application_dir }}/.env" |
| 54 | +envrc_file: "{{ application_dir }}/.envrc" |
| 55 | +virtualenv: "{{ application_dir }}/.venv" |
47 | 56 | project_repo: "git@github.com:NUKnightLab/{{ project_name }}.git"
|
48 |
| -requirements_file: "{{ deploy_dir }}/requirements.txt" |
| 57 | +requirements_file: "{{ application_dir }}/requirements.txt" |
49 | 58 | wsgi_application: "storymap.core.wsgi:application"
|
0 commit comments