mirror of
https://github.com/inspec/inspec
synced 2024-12-20 01:54:08 +00:00
c6e3b38e6d
The Gemfile.lock in the www directory needs to be updated since the last InSpec release. We should probably do this as part of the normal InSpec release process. You need to `bundle install` before releasing the web stuff, and the www rake tasks will fail if your git repo is unclean. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
data | ||
lib | ||
source | ||
tutorial | ||
.gitignore | ||
config.rb | ||
config.ru | ||
Gemfile | ||
Gemfile.lock | ||
Rakefile | ||
README.md |
InSpec homepage
Development
Get all dependencies:
bundle install
To run it live run:
bundle exec middleman server
For the online tutorial, take a look at www/tutorial
.
Building
To build the site to a local static folder (without tutorial):
bundle exec middleman build
To build everything including the online tutorial:
bundle exec rake www:build
Releasing
To build everything and push a new version of the website, be in the www folder of this repository and run:
bundle install
bundle exec rake www
It will clear everything and build from scratch and create a local gh-pages
branch with a static version of the website.
Before pushing, it will ask you if you are happy with it.
Please verify the site now! To host the current folder you can run:
ruby -run -e httpd . -p 8000
Open your browser to localhost:8000.
If you are happy, you can confirm the site and let the release task push it live.