Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export REDIS_URL when enabling/starting Redis #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion commands
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ case "$1" in

touch $REDIS_FLAG_PERSISTENCE_FILE

dokku config:set $APP REDIS_URL="redis://redis:6379/0"

dokku_log_info2 "Redis enabled for $APP"
dokku_log_verbose "Redis will be started on next build / deploy"

sleep 1
;;

redis:start)
verify_app_name $APP

Expand Down Expand Up @@ -169,6 +171,8 @@ case "$1" in
rm -rf $HOST_DIR
fi

dokku config:unset $APP REDIS_URL

dokku_log_info2 "Redis container destroyed:"
dokku_log_verbose "Application: $APP"

Expand Down