Skip to content

Commit

Permalink
update nodebb
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Aug 25, 2018
1 parent 9521364 commit 82e98b0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nodebb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 4567
CMD ["npm", "start"]
CMD ["./nodebb", "start"]
5 changes: 3 additions & 2 deletions nodebb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ nodebb:
- ./data:/var/lib/nodebb
- /usr/src/nodebb/build
- /usr/src/nodebb/node_modules
- /usr/src/nodebb/public/uploads
restart: always

redis:
Expand Down Expand Up @@ -47,9 +48,9 @@ $ firefox http://localhost:4567
```bash
$ docker-compose pull nodebb
$ docker-compose exec nodebb sh
>>> ./nodebb build
>>> ./nodebb upgrade
>>> exit
```

[1]: https://nodebb.org/
[2]: https://docs.nodebb.org/en/latest/
[2]: https://docs.nodebb.org/
2 changes: 1 addition & 1 deletion nodebb/arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 4567
CMD ["npm", "start"]
CMD ["./nodebb", "start"]
1 change: 1 addition & 0 deletions nodebb/arm/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nodebb:
- ./data:/var/lib/nodebb
- /usr/src/nodebb/build
- /usr/src/nodebb/node_modules
- /usr/src/nodebb/public/uploads
restart: always

redis:
Expand Down
2 changes: 1 addition & 1 deletion nodebb/arm/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export NODE_ENV=production
export silent=false
export daemon=false

if [[ "$*" == npm*start* ]]; then
if [[ "$*" == ./nodebb*start* ]]; then
if [ ! -e "$BB_CONTENT/config.json" ]; then
if [ -e "$BB_SOURCE/config.json" ]; then
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
Expand Down
1 change: 1 addition & 0 deletions nodebb/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nodebb:
- ./data:/var/lib/nodebb
- /usr/src/nodebb/build
- /usr/src/nodebb/node_modules
- /usr/src/nodebb/public/uploads
restart: always

redis:
Expand Down
2 changes: 1 addition & 1 deletion nodebb/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export NODE_ENV=production
export silent=false
export daemon=false

if [[ "$*" == npm*start* ]]; then
if [[ "$*" == ./nodebb*start* ]]; then
if [ ! -e "$BB_CONTENT/config.json" ]; then
if [ -e "$BB_SOURCE/config.json" ]; then
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
Expand Down

0 comments on commit 82e98b0

Please sign in to comment.