I am using beanstalk to develop my files locally and deploy them to the production server via beanstalk.

But what about the changes made on the website through the cms or any other changes that are made by the user (images, text, etc) so that I always have 1:1 copy?

How do I sync changes made on the on production server back to my beanstalk repository?

有帮助吗?

解决方案

Easy:

Get a backup of your live files and apply them to your local git repo. Maybe commit them to a special branch (incoming-live) that you can merge in when you need/want to.

Hard:

You could set up your deployment server as a git repo.

Then, deployments could be done using pushes directly to the server and reset to the latest version using hooks.

New files could be automatically added and committed (more hooks) and pushed back to origin. Then, you would have access to the live changes as they happen, all in git.

其他提示

That's why I wouldn't recommend beanstalk for a cms system.

Better create whole env manually with master host that stores the application in NFS which spawned instances mount automatically. You always have 1:1 and files locked while being written

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top