Forums

Git flow in case of 2 apps

Hey, I've got 2 apps on 2 different domains:

First is a production app, second is a development app.

I can't understand what git flow should i use if i want to test all changes on second app, then move them to first app and see on production

Could you pls advice, cuz i am stacked with this

thanks!

hi there, I would clone the repo into two locations on PythonAnywhere- then you could just pull/push from either. In particular, you would be pull/pushing from the development app before you deploy it on the production app.

are you using something like github/bitbucket?

yes, i am using github

Then what Conrad suggested would work well. You would develop on the development app, committing your code as normal and pushing it to GitHub. When you want to deploy to the live site, just switch to the directory containing its repo, then git pull the code down from GitHub, do any required database migrations (and collectstatic if you're using Django), then reload the site from the "Web" page.