Changes between Version 2 and Version 3 of control-panel/common-tasks

Jan 4, 2014, 7:34:40 PM (8 years ago)
Drew Hornbein

tellin' my peeps all about updating to the dev server.


  • control-panel/common-tasks

    v2 v3  
    11= Common tasks UI Improvements =
     3== Setting up your local git environment ==
     5To get started you simply need to clone the red repo and install red.
     7To clone red try: `git clone`
     9[ Read the installation instructions here]
     11== Using git ==
     13If you're just editing a few lines of code and suspect it will only take you a single commit to work your magic, just make the commit to the `dev` branch. Be sure to leave a good commit comment, perferably with the ticket number you're fixing (ex: `git commit -m "added reset password dialog fix #8175"`)
     15If your edits might require more than one commit create a new branch `git checkout -b ticket_0000` (this command will create a new branch then switch to it). Remember, you can make a new branch any time while editing the code!
     17It is suggested that you name the branch after the ticket number you are working on (eg `git branch ticket_1234`).
     19If you aren't working on a ticket then prefix your branch name with your initials. (eg `dh_new_branch`)
     21=== Understanding red dev git branches ===
     23We use the `master` branch for stable ''tested'' code.
     25The `dev` branch is for development code, you should merge your working branch into dev on your local machine then push it to the git repo so that you only have to pull down the `dev` branch on the server.
    327== Pushing changes to Red development environment ==
    5 The red development environment lives at []
     29Note: If you have a MayFirst account and would like access to the dev hosting order please issue a ticket to `` and ask politely.
     31The red development environment lives at [] on
     33This environment pulls from the red github repo at `git://`
     35To pull updates simply log in to the hosting order using `ssh`
     37Then use the following commands:
     41git checkout dev #this will ensure that you're on the dev branch
     42git pull
     43git merge origin/dev
     46If all goes well you should see the changes on []. Remember to do a "hard refresh" using ctrl+shift+R (command+shift+R for mac) on most browsers. This will ensure that you overwrite any supplementary files (like css) in your browsers cache.
     48Once your changes are live on dev be sure to have people review the changes. If they appear to be stable then we can take them live. See instructions below.
     50=== Testing unstable changes ===
     52If you have some crazy experimental changes you want to test please set the dev environment to a different branch. Here's an example:
     54On the server:
     57git pull origin you_branch_name
     58git checkout your_branch_name
     61Then you'll be able to view your experimental changes on [].
     63When you're done testing please set the git back to the `dev` branch using the command `git checkout dev`.
     65== When your code is ready for prime time ==
     67Once you've thoughly tested and shared your changes from the dev branch and everyone is happy with the great work you've done feel free to merge your changes into the master branch and push those changes to the red dev repo. This process should look something like this:
     70git checkout master
     71git merge dev
     72git push origin master