Skip to content

Commit

Permalink
chore: backup redeploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
en3sis committed Feb 28, 2024
1 parent 0bc217f commit ed458f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/redeploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Change directory to /hans folder
cd hans

# Pull the latest image from en3sis/hans:nightly
docker pull en3sis/hans:nightly

# Stop and remove the "hans" Docker container
docker stop hans && docker rm hans

# Run the "hans" Docker container with necessary options
docker run --env-file .env --name hans -d --restart=always en3sis/hans:nightly

# Wait for the Docker container to start
sleep 5

# Check the container logs to verify successful execution
docker logs hans

0 comments on commit ed458f3

Please sign in to comment.