DorryWeb is a website of Matchbox company.
git clone -b develop git@github.com:MatchboxDorry/MatchboxWeb.git
cd MatchboxWeb
npm install
grunt
After you input the grunt ,there will be a folder named product, including index.html, joinus.html and assets folder. If you do development, you can modify the jade files in the src folder, then you can run the gruntfile.js, this file will compile the jade files int the src folder to create a product folder including the html pages and assets.
If you changed the css and images... , you need to add and commit.
git add <the things you modified>
git commit -m "<description of your changes>"
After you modify the changes, you need to commit the product to the develop branch.
git add product
git commit -m "add product"
git checkout -b test origin/test
./test.sh
Run the test.sh, you will get html pages and assets ,then you can open the chrom browser and input
localhost:8000
git add assets *.html
git commit -m "<add assets *.html>"
git checkout gh-pages
git checkout test assets *.html
git add <the things you modified>
git commit -m "<description of your changes>"
git push origin gh-pages
git checkout test
git rm -r assets *.html
git commit -m "delete the assets *.html"
git push origin test
git checkout develop
git rm -r product
git commit -m "delete the product folder"
git push origin develop