Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Add awsbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit Cambridge committed Feb 16, 2015
1 parent e0b8f0f commit e97068d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .awsbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"processes": ["server.js"],
"hooks": {
"postdeploy": "scripts/postdeploy.sh"
}
}
26 changes: 23 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
loads-web
=========

Web dashboard for Loads, v2.
Web dashboard for Loads, v2.
https://github.com/loads/loads-broker

* Monitors active loadtests
Expand All @@ -12,7 +12,6 @@ https://github.com/loads/loads-broker
This is a work in progress. FOR DEMO ONLY.



Development
===========

Expand All @@ -26,4 +25,25 @@ Watch and compile stylus to CSS:

Starting the server:

node server
node server


Deployment
==========

The dashboard is hosted by a hapi server that proxies API requests to a
separate broker instance. This allows the front-end to be developed
independently of the broker, and provides a mechanism for serving mock data
if the broker does not implement a particular call.

You can use `awsbox <https://github.com/mozilla/awsbox>`_ to deploy the hapi
server to AWS:

.. code-block:: bash
# Create the instance.
> AWS_REGION=us-west-2 AWS_ID={id} AWS_SECRET={secret} \
[email protected] awsbox create -n loads-web
# Deploy committed changes.
> git push loads-web HEAD:master
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
"mysql": "2.5.4",
"remarkable": "1.6.0",
"sequelize": "2.0.0-rc8",
"stylus": "0.50.0"
"stylus": "0.50.0",
"bower": "1.3.12"
},
"devDependencies": {
"eslint": "0.13.0",
"nsp": "1.0.0"
"nsp": "1.0.0",
"awsbox": "0.7.0"
},
"homepage": "https://github.com/loads/loads-web",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions scripts/postdeploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

npm install stylus
npm run prestart

0 comments on commit e97068d

Please sign in to comment.