Skip to content

Commit

Permalink
chore: refactor test to try, docs. (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
morganney authored Mar 2, 2024
1 parent bb7f76d commit c179cf8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,13 @@ Here is another example using shell environment variables defined when starting
```
SERVER_NAME=busmap.online HOST_NAME=busmap.online docker compose -f compose.yaml up --attach-dependencies stage
```

### Rebuilding in Production

To rebuild images and recreate containers while already running on production server:

1. `cd code/busmap`
2. `git pull origin main`
3. `docker compose -f compose.yaml -f compose.production.yaml up -d --build stage`
4. `docker builder prune -a` (instance has little drive space, so this is essential)
5. Optionally remove any dangling images too, `docker image prune`.
3 changes: 3 additions & 0 deletions packages/web/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Configuration to stage a production build.

server {
listen 443 ssl;
http2 on;
server_name test.busmap.online;
server_tokens off;
include /etc/nginx/conf.d/core/ssl.conf;

return 301 https://try.busmap.online$request_uri;
}
Expand Down

0 comments on commit c179cf8

Please sign in to comment.