Fixex the deployment issues, read more

The deployment issues were caused by sequelize running out-of-order.
I fixed this by placing sequelize.sync() in correct locations.

I've also updated news-server with these changes.

I've also removed mariadb stuff from the game server's Dockerfile.

Resolved #1
This commit is contained in:
2021-03-03 23:32:27 +00:00
parent b0ac371a43
commit 488f975e98
4 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ services:
MYSQL_ROOT_PASSWORD: ${databaseRootPassword}
volumes:
- "./mysql:/var/lib/mysql"
- "./startup.sql:/docker-entrypoint-initdb.d/startup.sql:ro"
- "./startup.sql:/docker-entrypoint-initdb.d/startup.sql:ro"
networks:
- app-network
@@ -175,7 +175,7 @@ RUN npm install
COPY . /app
EXPOSE 3000
ENTRYPOINT ["bash", "-c"]
CMD ["npm start"]
CMD ["sleep 10 && npm start"]
`;
const sqlfile = `