Fix front pwd and epmd

This commit is contained in:
Logan Hunt 2023-01-31 17:40:50 -07:00
parent 58eb3df0f4
commit ce5f598331
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49
3 changed files with 8 additions and 4 deletions

View File

@ -71,7 +71,11 @@ COPY --from=builder --chown=nobody:root /app/priv /app/priv
USER nobody
# EPMD (elixir cluster)
EXPOSE 4369
# API
EXPOSE 8080
# CheSSH!
EXPOSE 34355
CMD /app/bin/chessh eval "Chessh.Release.migrate" && /app/bin/chessh start

View File

@ -36,5 +36,6 @@ sudo docker build . -t chessh/server
cd $HOME
sudo mv chessh.service /etc/systemd/system/chessh.service
sudo systemctl daemon-reload
sudo systemctl enable --now chessh
sudo systemctl restart chessh
sudo systemctl enable chessh
sudo systemctl stop chessh
sudo systemctl start chessh

View File

@ -6,9 +6,8 @@ export $(cat $env_file | xargs)
docker build ../.. -t chessh/server
cd front
docker build \
--build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \
--build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \
--build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \
. -t chessh/frontend
../../front -t chessh/frontend