svn - How to decrease time for project env setup? -


We have lots of application logs (sometimes useful) in our project tmp Are) I code> folder .

We have directories of components in this folder, such as:

  • API
  • Email 2 SMS
  • Scheduled / Pending
  • Billing
  • etc. In summary, less than 10 folders.

    Problem: The folder of the new component arises over time - each of these folders is writable.

    So every developer takes time to chmod each folder in their local environment, it takes time to mislead those folders in production.

    How can this problem be solved? How can this process be automated (Apache ant task, SVN properties, script of application - to be responsible for the task)?

    Environment: Development Environment - Ubuntu, Windows; Production - FreeBSD

    I used to have some quick and dirty methods used in most companies:

    1. Place all the code in a version system (such as SVN or something) so that all developers have a source of the file. You are clearly doing this already. Hooray!
    2. Enter the root of the code, a named file setup_permissions.sh which updates all local environment content, can include permissions, or Whatever you need to run
    3. Every morning, all programmers do svn update , which update the file, and also setup_permissions.sh .
    4. They try to run their code. See a problem they run setup_permissions.sh .
    5. All are well in the world!

    for contents of contents_permissions.sh , something like this might happen:

      # / bin / sh tmp = / tmp mkdir $ tmp / api mkdir $ tmp / email2sms mkdir $ tmp / Anusucit_sending mkdir $ tmp / billing chmod 777-R $ TMP / API $ TMP / email 2 SMS $ TMP / scheduled $ Sdianding $ TMP / billing  < / Pre> 

    And any other command that you think you think is add.
    (Oh, and do not use the chmod 777 ... The key is a terrible idea. Just see it as an example.)

    This approach Discipline is there. Keep you maintain discipline in the run time setup_permissions.sh update to its local environment must trust your programmers. Anyone who updates the production system also goes for that too.

    Instead of manually change your computer - you have the discipline to update the setup_permissions with any changes made to the directory structure should be, and his permission change required should be, and leaving him (and he changes also for all other developers who directory structure.)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -