This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kit Cambridge
committed
Feb 16, 2015
1 parent
e0b8f0f
commit e97068d
Showing
4 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"processes": ["server.js"], | ||
"hooks": { | ||
"postdeploy": "scripts/postdeploy.sh" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -12,7 +12,6 @@ https://github.com/loads/loads-broker | |
This is a work in progress. FOR DEMO ONLY. | ||
|
||
|
||
|
||
Development | ||
=========== | ||
|
||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
npm install stylus | ||
npm run prestart |