Skip to content

Commit 6d7148f

Browse files
committed
add readme instructions for tmux
1 parent 936bddc commit 6d7148f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $ docker-compose -f local.yml run --rm django python manage.py loaddata sde_coll
8282
Navigate to the server running prod, then to the project folder. Run the following command to create a backup:
8383

8484
```bash
85-
docker-compose -f production.yml run --rm --user root django python manage.py dumpdata --natural-foreign --natural-primary --exclude=contenttypes --exclude=auth.Permission --indent 2 --output /app/backups/prod_backup-20240812.json
85+
docker-compose -f production.yml run --rm --user root django python manage.py dumpdata --natural-foreign --natural-primary --exclude=contenttypes --exclude=auth.Permission --indent 2 --output /app/backups/prod_backup-20241114.json
8686
```
8787
This will have saved the backup in a folder outside of the docker container. Now you can copy it to your local machine.
8888

@@ -208,3 +208,20 @@ Eventually, job creation will be done seamlessly by the webapp. Until then, edit
208208
- JavaScript: `/sde_indexing_helper/static/js`
209209
- CSS: `/sde_indexing_helper/static/css`
210210
- Images: `/sde_indexing_helper/static/images`
211+
212+
213+
## Running Long Scripts on the Server
214+
```shell
215+
tmux new -s docker_django
216+
```
217+
Once you are inside, you can run dmshell.
218+
219+
Later, you can do this to get back in.
220+
```shell
221+
tmux attach -t docker_django
222+
```
223+
224+
To delete the session:
225+
```shell
226+
tmux kill-session -t docker_django
227+
```

0 commit comments

Comments
 (0)