Skip to content

Commit 214c28a

Browse files
committed
fixup update instructions
1 parent 22919f7 commit 214c28a

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

docs/Updating-the-Project.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,22 @@ Quick instructions:
88
2. check `git status` for any local changes you may have made to project files. Save and preserve your changes by doing a commit: `git commit -a -m "local customization"`. Or revert them using: `git checkout -- path/to/changed_file`.
99
3. update project files from github: `git pull origin master -r`
1010
4. get latest images from the web: `docker-compose pull`
11-
5. rebuild localy created images from new Dockerfiles: `docker-compose build --pull`
12-
6. update containers to latest: `docker-compose up --build -d`
13-
7. **optional**, needed if something won't start after the rest of the steps - to update docker-compose.yml with new definitions for a container: open `./menu.sh`, select Build Stack, unselect and then reselect the container causing the issue, and then build by presing enter. Check if this fixed your issue: `docker-compose up -d`
11+
5. rebuild localy created images from new Dockerfiles: `docker-compose build --pull --no-cache`
12+
6. update running containers to latest: `docker-compose up --build -d`
13+
14+
*Troubleshooting:* if a container fails to restart after update
15+
* try restarting the whole stack: `docker-compose restart`
16+
* Check log output of the failing service: `docker-compose logs *service-name*`
17+
* try googling and fixing problems in docker-compose.yml manually.
18+
* backup your docker-compose.yml and try recreating the failing service
19+
definition using menu.sh:
20+
* `cp docker-compose.yml docker-compose.yml.bak`
21+
* `./menu.sh`, select Build Stack, unselect the failing service, press enter
22+
to build, and then exit.
23+
* `./menu.sh`, select Build Stack, select the service back again, press enter
24+
to build, and then exit.
25+
* Try starting now: `docker-compose up -d`
26+
* Go to the IOTStack Discord and ask for help.
1427

1528
## Details, partly outdated
1629

0 commit comments

Comments
 (0)