Skip to content

Commit a340df8

Browse files
authored
fix: [KAN-34] deployment err (#4)
1 parent 98fafae commit a340df8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
docker stop ceramicraft-user-mservice || true
5454
docker rm ceramicraft-user-mservice || true
55-
docker run -d --name ceramicraft-user-mservice --network ceramicraft-network -p 8080:8080 "${DOCKER_HUB_USERNAME}/ceramicraft-user-mservice:${{ github.event.inputs.version }}"
55+
docker run -d --name ceramicraft-user-mservice --network ceramicraft-network -e MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }} -p 8080:8080 "${DOCKER_HUB_USERNAME}/ceramicraft-user-mservice:${{ github.event.inputs.version }}"
5656
restart:
5757
if: ${{ github.event.inputs.command == 'restart' }}
5858
runs-on: self-hosted

server/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ RUN go build -ldflags="-s -w" -o main main.go
1818

1919
# Create a non-root user and set permissions
2020
RUN useradd -m appuser && \
21-
mkdir -p log && \
21+
mkdir -p logs && \
2222
chown -R appuser:appuser config/ && \
23-
chown -R appuser:appuser log/ && \
23+
chown -R appuser:appuser logs/ && \
2424
chmod +r config/* && \
25-
chmod +w log && \
25+
chmod +w logs && \
2626
chmod +x main
2727

2828
EXPOSE 8080

server/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ http:
1010

1111
log:
1212
level: debug
13-
file_path: ./logs/user-server.log
13+
file_path: ./logs/ceramicraft-user-mservice.log
1414

1515
mysql:
1616
host: "mysql-container"

0 commit comments

Comments
 (0)