Git environment setup. Consultation needed

Background Information:

  • Currently we are 3 programmers (good, real friends, no problem with distrust).
  • Each SSH programmer on the same Linux server where the code is located under its own username with sudo privileges.
  • We all use different files at the same time. We ask the question "Are you in the __ file?" sometimes. We use Vim so that we know if the file is open or not.
  • Our development code (not yet) is located in / var / www /
  • Our remote repo is hosted on a bitbucket.
  • I am * very * new to Git. I used to use subversion, but I was basically instructions with a spoon, and I was told exactly what to enter for code synchronization and commit.
  • I read about half of Scott Chacon Pro Git and how much of my knowledge of Git is.
  • In case that matters, we are launching Ubuntu 11.04, Apache 2.2.17 and Git 1.7.4.1.

So, Jan Hudeck gave me some tips in the previous question. He told me that good practice is as follows:

  • Each developer has their own repo on their local computer.
  • Let / var / www / be the repo on the server. Set the .git folder to 770.

This would mean that each developer computer should have its own LAMP stack (or at least Apache, PHP, MySQL, and Python).

The codes are mostly JavaScript and PHP files, so there is no need to clone it. However, how do we locally manage the database?

, ( ). , , MySQL "" ?

+5
3

, " ", " ". - .

, , , . , , , .

, , . , , .

-, . , ( ), , .

-, , - . .

-, . - .

-, . , ...

.

, , , , . , . , . , . .

-, "test fixtures". . , , , . , , . , .

-, "" . , , . , , . , . , .

, , . "The Sims Technique" , , , . , , User, , , Payment Session. , , , . , , , . , . , . , Payment, Session. , ... . ...

# Generate a random login session, but guarantee that it logged in.
session = Session.sim( logged_in = true )

, .

# A user who is logged in but has an invalid Visa card
# Their name and age will be random but valid
user = User.sim(
    session = Session.sim( logged_in = true ),
    payment = Payment.sim( invalid = true, type = "Visa" ),
);

, , . "" sim rand . , Unicode random_name, , ! , .

. , , , . , , : , , , .

+4

:

  • , /. , , . , !
  • . , PHP.
  • (mysqldump) MySQL , MySQL. /
  • .

, , , .

+1
  • ( 10-20-100 )
  • () , ( - , ) ( ) Continuos ( , ). (DB-part) ( , ) () ,

    • it is processed and processed and converted into a final useful object by code, and not manually - there are no human errors, no interventions in the work
0
source

All Articles