Skip to content

nickchase/nick-test-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Working with the miraweb repository -- edited

This document explains the steps necessary for working with the Mirantis web site files using Git. Changes that are made through the admin control panel are handled manually, as are any changes that are made directly to the database. (Though any scripts used to alter the database should be stored in this repository.)

Workflow

The general workflow looks like this:

  1. User makes a change on dev.mirantis.com directly by editing files in their local working directory (explained below) and uploading them to the server using SFTP.
  2. User checks the changes on the server.
  3. If the user is happy, (or if needs to stop for a checkpoint) they can commit and push the changes to the miraweb repo's dev branch.
  4. When the user is ready to move the changes to staging, they merge them to the staging branch.
  5. The Synthesis process automatically checks the staging branch every 5 minutes, and changes will be automatically propogated to the staging server. No action needs to be taken to make this happen (other than merging changes with staging).
  6. When the user is happy with the changes on staging, they can be merged into the master branch.
  7. Twice a week, after review, Synthesis propogates the changes in the master branch to the production server. No action needs to be taken to make this happen (other than merging changes with master).

How to work with the miraweb repo

Working with the miraweb repo to make changes to the development branch conists of the following steps:

  1. Create a github.com account, if you don't already have one, and contact an administrator to be added to the miraweb repo.
  2. Install git on your local machine. This comes in various flavors, so you may have to ask Google for assistance here.
  3. Open a git bash window (if necessary).
  4. Decide what directory is going to be your "working directory" -- where you store your files -- and navigate to that folder in the git bash window, or in the command line window if you're simply using git from the command line.
  5. Type https://github.com/Mirantis/miraweb.git and press enter; enter any authentication information the server asks you for.
  6. Change to the miraweb directory.
  7. Change to the development branch by typing git checkout dev.
  8. Make any necessary changes, add any new files, etc., to this directory on your local machine.
  9. Test your changes by uploading them to dev.mirantis.com using sFTP.
  10. Tell git that you want to add your changes to the repo by typing git add *. (You can also add individual files by name, if you don't want to add all changes.)
  11. Commit changes by typing `git commit -m "A short message explaining what you changed."
  12. At this point the changes are committed locally, so you can go back if you want to, but they're not on the server yet. To do that, type git push origin dev to send the files to the development branch of the original server.

About

figuring out his this works.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published