How to organize webapp?

I am starting my first webapp and I am not sure how to do it. I use Django and Apache:

  • How do you manage the source code repository? Are you browsing a separate folder and then have a script assembly that copies files? What exactly should be added to the repository? In other words, how do you make sure that you are not committing auto-generating files? (sometimes it's hard to say what is auto-generated and what I still don't understand :)

  • How to start deployment on a personal development page, and then proceed with deployment on the main page? Can I set up two servers? If so, how?

I know these are the novice’s curious questions, but I can’t find a good tutorial that really explains these fundamental problems.

+3
source share
2 answers

I would have a copy of the development that would be validation from my repository. On a live site, I would export (as opposed to checks) tagged versions, and I would name the directory in which this export data is with the tag name "project-v1.4.5", for example. Then I would have a symbolic link to the current active tag. This allows you to revert to an older version much more easily if you find problems after upgrading to a new tag.

If you use SVN, I recommend that you read ( http://svnbook.red-bean.com/ ) sections of the SVN book on fundamental concepts and tags (in the Branching and Merging Section).

SVN , http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.ignore.html

+3

git (, ). . .

0

Source: https://habr.com/ru/post/1724410/


All Articles