-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move require('../lib/redis_conf.js') inside lab.test() to ensure its …
…only required once test is running as suggested hapijs/lab#401 (comment)
- Loading branch information
Showing
3 changed files
with
27 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 |
---|---|---|
|
@@ -97,11 +97,31 @@ We use: | |
+ **n** for the **name** of the person who wrote the message | ||
+ **t** for the **timestamp** the message was *received* by the node server (_to avoid time-zone issues_); | ||
|
||
## Run it! | ||
# Run it! | ||
|
||
## Locally (_on your own mahine_) | ||
|
||
Define the TCP `PORT` (_environment variable_) you want the Hapi.js + Socket.io server to listen on: | ||
```sh | ||
export PORT=8000 | ||
``` | ||
then you can start the app with: | ||
```sh | ||
npm install && npm start | ||
``` | ||
|
||
## Running the Tests (_Locally_) | ||
|
||
To successfully run the tests you need to have an environment variable for RedisCloud | ||
(this is because we like to know that our code works on both "local" and in a "production" enviroment...) | ||
|
||
E.g: | ||
```sh | ||
export REDISCLOUD_URL=redis://rediscloud:[email protected]:12345 | ||
``` | ||
|
||
## Heroku (deploying to Heroku) | ||
|
||
|
||
|
||
## Background Reading | ||
|
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