Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LomotHo committed Jul 21, 2020
1 parent 203ef56 commit 6c9e0b0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ jobs:
- name: upload image
run: |
docker login --username=${{ secrets.DOCKER_ID }} --password=${{ secrets.DOCKER_TOKEN }}
docker tag lomot/bedrock-web-console:latest lomot/bedrock-web-console:base
docker push lomot/bedrock-web-console:base
# docker push lomot/bedrock-web-console:latest
docker tag lomot/bedrock-web-console:latest lomot/bedrock-web-console:dev
docker push lomot/bedrock-web-console:dev
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ Thumbs.db
# Folders to ignore
bower_components
node_modules

console.js
# python
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ COPY --from=builder /vue-dist $PUBLIC_PATH

EXPOSE 3000
# RUN

ENTRYPOINT ["script/entrypoint.sh"]
CMD ["node","app.js"]
2 changes: 1 addition & 1 deletion controller/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
});
}
else {
throw new APIError("syntax", "cmd not found");
throw new APIError("syntax", "cmd empty");
}
}
}
6 changes: 6 additions & 0 deletions script/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -e

echo "ENTRYPOINT"
chmod +x bedrock/bedrock_server
exec "$@"

0 comments on commit 6c9e0b0

Please sign in to comment.