Skip to content

Commit

Permalink
DE workspace udpates
Browse files Browse the repository at this point in the history
  • Loading branch information
BRONSOLO committed Nov 30, 2020
1 parent 0a43b1a commit 64d7a09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dokku-event-listener [![CircleCI](https://circleci.com/gh/dokku/dokku-event-listener.svg?style=svg)](https://circleci.com/gh/dokku/dokku-event-listener)

Service that listens to docker events and runs dokku commands.
Plotly Updates: Service that listens to docker events and runs workspace commands.

## Requirements

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type ShellCmd struct {

const APIVERSION = "1.25"
const DEBUG = true
const DOKKU_APP_LABEL = "com.dokku.app-name"
const DOKKU_APP_LABEL = "dds.workspace.app-name"

var cm containerMap
var dockerClient *client.Client
Expand Down Expand Up @@ -161,7 +161,7 @@ func handleEvent(ctx context.Context, event events.Message) (error) {
Int("restart_count", container.RestartCount).
Int("max_restart_count", container.HostConfig.RestartPolicy.MaximumRetryCount).
Msg("rebuilding_app")
if err := runCommand("dokku", "--quiet", "ps:rebuild", appName); err != nil {
if err := runCommand("/var/www/manager/manage.py", "update_nginx", appName); err != nil {
log.Warn().
Str("container_id", containerShortId).
Str("app", appName).
Expand Down

0 comments on commit 64d7a09

Please sign in to comment.