Skip to content

Customizations without restarting the server? #824

Closed Answered by sclemance
sclemance asked this question in Q&A
Discussion options

You must be logged in to vote

I took a minute and stuck my nose deeper into DigitalOcean's slightly lackluster documentation for the App Platform. Looks like in their YAML app spec, run_command overrides the dockerfile's CMD, (similar to entrypoint), so I was able to do the following:

run_command: sh -c "apk --no-cache add git && rm -rf /kutt/custom && git clone https://github.com/mycompany/mytheme.git /kutt/custom && npm run migrate && npm start"

A couple comments for anyone interested: I noticed that whatever was following run_command in DO's was not being parsed/processed like the shell would, so I found it necessary to use sh -c. Finally, I just tacked on the CMD from the dockerfile to finish things off, (since th…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sclemance
Comment options

Comment options

You must be logged in to vote
1 reply
@sclemance
Comment options

Answer selected by sclemance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants