Created
October 13, 2021 20:05
-
-
Save joshlarsen/7c4aa8a462dcc91b0a41c89e6af09623 to your computer and use it in GitHub Desktop.
Rails binstubs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Make sure to stop/start the Redis Docker container properly. | |
# | |
CONTAINER_NAME="redis-container" | |
DOCKER_START="docker start -ai ${CONTAINER_NAME}" | |
DOCKER_RUN="docker run --name ${CONTAINER_NAME} -p 6379:6379 redis" | |
# is there an existing container named 'redis'? | |
if $(docker ps -a|grep ${CONTAINER_NAME} > /dev/null) ; then | |
$DOCKER_START | |
else | |
$DOCKER_RUN | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# start sidekiq | |
bundle exec sidekiq -q default -q mailers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment