hirasso / wp-sync-deploy

Sync and deploy your wordpress website between environments 🔀
MIT License
4 stars 0 forks source link

Ensure deployed files were pushed to remote before deploy. #2

Open ovenum opened 2 days ago

ovenum commented 2 days ago

Hi Rasso! Thanks for this Tool!

Before uploading the files from a local folder, checking that there are no unpushed changes in the current working directory would be nice to have.

This can prevent some accidental mistakes where uncomitted files are deployed to the server via rsync.

hirasso commented 1 day ago

Great idea! I think it would make sense to still allow deployment with an unclean working dir. But asking "Are you sure?" would be nice.

Aside from that, checking if the latest local commit matches the latest remote commit (if there is a remote) could also proof handy.

ovenum commented 1 day ago

Great idea! I think it would make sense to still allow deployment with an unclean working dir. But asking "Are you sure?" would be nice.

Personally I would prefer separate action for doing this. It's a more conscious decision then.