Skip to content

Commit 3862d4a

Browse files
authored
doc: update manual deploy instructions (ietf-tools#3907)
* doc: update manual deploy instructions * chore: correct installation unroll step
1 parent 55d7629 commit 3862d4a

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

dev/INSTALL

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ General Instructions for Deployment of a New Release
1919
2. Fetch the release tarball from github
2020
(see https://github.com/ietf-tools/datatracker/releases)::
2121

22-
wget https://github.com/ietf-tools/datatracker/archive/refs/tags/${releasenumber}.tar.gz
23-
tar xzvf ${releasenumber}.tar.gz
22+
wget https://github.com/ietf-tools/datatracker/releases/download/${releasenumber}/release.tar.gz
23+
tar xzvf release.tar.gz
2424

2525
3. Copy ietf/settings_local.py from previous release::
2626

@@ -33,17 +33,19 @@ General Instructions for Deployment of a New Release
3333
pip install --upgrade setuptools
3434
pip install -r requirements.txt
3535

36-
5. Run system checks (which patches the just installed modules)::
36+
5. Move static files into place for CDN (/a/www/www6s/lib/dt):
3737

38-
ietf/manage.py check
38+
ietf/manage.py collectstatic --noinput --ignore=bower.json --ignore='README.*' --ignore=rev | grep -v "Found another file with the destination path"
3939

40-
6. Move static files into place for CDN (/a/www/www6s/lib/dt):
40+
6. Run system checks (which patches the just installed modules)::
4141

42-
ietf/manage.py collectstatic --noinput --ignore=bower.json --ignore='README.*' --ignore=rev | grep -v "Found another file with the destination path"
42+
ietf/manage.py check
4343

4444
7. Run migrations:
4545

4646
ietf/manage.py migrate
47+
48+
Take note if any migrations were executed.
4749

4850
8. Back out one directory level, then re-point the 'web' symlink::
4951

@@ -59,7 +61,9 @@ General Instructions for Deployment of a New Release
5961

6062
http://datatracker.ietf.org/
6163

62-
11. If install failed, revert web symlink and repeat the restart in step 9.
64+
11. If install failed and there were no migrations at step 7, revert web symlink and repeat the restart in step 9.
65+
If there were migrations at step 7, they will need to be reversed before the restart at step 9. If it's not obvious
66+
what to do to reverse the migrations, contact the dev team.
6367

6468

6569
Patching a Production Release

0 commit comments

Comments
 (0)