* Test: http://eu-osha.github.io/hwc-splashpage
* Production: https://www.healthy-workplaces.eu
Install NPM & Grunt to call the build tasks.
npm install -g grunt grunt-cli # global package to run grunt
git checkout master
npm install
Do development & commit
git checkout gh-pages
git merge master
grunt dist
git commit CSS & resources
- Bring all the changes to the
gh-pages
branch (i.e.git checkout gh-pages && git merge master
) - Build the distribution
grunt pack
, which will result in a new build artifact calledrelease.zip
. This is the release to be deployed in production.
This will create release.zip that is deployable in root directory of the web server.
- Visit the Release tab and draft a new release, add comments, and upload the
release.zip
(first rename to next increment i.erelease-1.2.4.zip
)
Info: The grunt pack
compiles the LESS files into CSS, minifies the JS, and replace the Piwik production key in each HTML.
* Visit the release page and download the ZIP file attached to the latest release (ie. hwc-splashpage-v.1.0.0.zip)
* Unzip the file in the root directory of your web server's virtual host