/gistbook

A place to share code snippets on the web.

Primary LanguageJavaScriptMIT LicenseMIT

Gistbook Travis build status

This is the development repository for Gistbook.io.

Contributing

Right now it is not possible to run Gistbook locally unless you have its Github App secret. This is a known issue that I'm working on resolving.

Installation

Clone this repository.

git clone https://github.com/jmeas/gistbook.git

Navigate into the root directory of the project and install the dependencies.

cd gistbook && bower install && npm install

Developing locally

If this is your first time setting up Gistbook locally, run sudo npm run provision-hosts-local.

Note: You will only ever need to run that a single time.

To build and start the development version of the app, run grunt work -f.

Once the app is built, you can access it at http://gistbook.loc:3000.

Deploying

Run npm run get-secrets if you haven't already. You'll only need to do this once.

To Staging

Run the npm run deploy-staging command from the root directory of the project.

To Production

Execute the npm run deploy command from the root directory of the project. Tag a new release on Github with the new version number.