crisward / dokku-clone

a dokku plugin for building an app from a cloned git repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add --no-restart to clone comand

decentral1se opened this issue · comments

We can avoid the following:

ps_rebuild "$APP"

This is useful for doing Ansible deployments where you want to control exactly at which point the app is deployed and not have it come up during some other configuration command.

Please see #21.

Thanks for the suggestion and having a go, and more importantly testing. I'll leave this open, but I can't promise I'll get chance to look at it any time soon.

I have a related request, which is: could we add a flag that makes dokku clone a no-op, if the git clone operation leaves the git checkout unchanged?

I notice that, currently, running dokku clone will rebuild the docker image and recreate the docker container even if the source code of the app hasn't changed at all.

P.S. If there was a way to make dokku clone a no-op in this case, it would simplify the implementation of the dokku_clone ansible module, since the module could then simply run dokku clone and rely on its internal logic to check whether anything needs to be done.