Skip to content

Commit

Permalink
stub for next version: dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Sep 12, 2012
1 parent be2e9e7 commit b22bdd5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
4 changes: 3 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var configData = {};
/////////////////////////

configData.general = {
"apiVersion": "3.0.8",
"apiVersion": "3.0.9",
"serverName": "actionHero API",
// The welcome message seen by TCP and webSocket clients upon connection
"welcomeMessage" : "Hello! Welcome to the actionHero api",
Expand All @@ -30,6 +30,8 @@ configData.general = {
// The number of internal "workers" this node will have.
// Remember these are logical timers (not threads) so they will block if they are computationally intense
"workers" : 3,
// watch for changes in actions and tasks, and reload them on the fly
"developmnetMode": false,
};

/////////////
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Evan Tahler <evantahler@gmail.com>",
"name": "actionHero",
"description": "actionHero is a node.js API framework for both tcp sockets, web sockets, and http clients. The goal of actionHero are to create an easy-to-use toolkit for making reusable & scalable APIs",
"version": "3.0.8",
"version": "3.0.9",
"homepage": "http://actionherojs.com",
"repository": {
"type": "git",
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ Create a `config.js` file in the root of your project. Here is the default conf
// These params will always be appended to any request as "limit" and "offest" unless set by the client
"defaultLimit": 100,
"defaultOffset": 0,
// The number of internal "workers" this node will have.
// Remember these are logical timers (not threads) so they will block if they are computationally intense
"workers" : 3,
// watch for changes in actions and tasks, and reload them on the fly
"developmnetMode": false,
};
/////////////
Expand Down
21 changes: 16 additions & 5 deletions versions.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
# Action Hero API Versions

## Version 3.0.9

**Development Mode**

- actionHero now has a development mode! files in `/actions` and `/tasks` will be watched for changes, and reloaded on the fly.
- Don't use this in production!

## Version 3.0.8

**CLUSTER**

- A new, production-ready cluster example (complete with unix signal handling and 0-down time reloads for code changes)

**Bugs**

- Stopping an actionHero node will remove himself from `actionHero:peerPings`
- Cleaned up the colorizer within the logger
- Shuttting down the actionHero when no servers were active to begin with returns true on `actionHero.stop()`
- Shutting down the actionHero when no servers were active to begin with returns true on `actionHero.stop()`
- final message sent to TCP clients on disconnect or shutdown now matches, "Bye!"

## Version 3.0.7

**Action Cluster**
- a new global hash, actionHero:peerPings, will store the last pings from each peer. They should ping every ~500ms. This can be used to detect when peers disapear

- a new global hash, actionHero:peerPings, will store the last pings from each peer. They should ping every ~500ms. This can be used to detect when peers disappear
- disconnected peers are removed from the global list, and any tasks they were working on are re-enqueued

**Bugs**

- fixed a bug where using the generator to create a new action with no inputs would generate invalid syntax
- refactor redis namespace to be `actionHero:` rather than `actionHero:`
- refactor redis name-space to be `actionHero:` rather than `actionHero:`
- actionHero.restart now returns the api object on success `actionHero.restart(true, api)`

## Version 3.0.6
Expand Down Expand Up @@ -69,7 +80,7 @@

**Notes**

- Configuration to set how many task workers each actionHero node has. You now are **requried** to set `api.configData.general.workers`
- Configuration to set how many task workers each actionHero node has. You now are **required** to set `api.configData.general.workers`
- Added generators for actions and tasks
- `npm run-script actionHero generateAction`
- `npm run-script actionHero generateTask`
Expand All @@ -91,7 +102,7 @@
- Only tasks present in your project will be loaded (like actions). Now that there is a generator which will copy in some default actions, loading tasks within actionHero is not needed.
- Project reorganization per the above
- remove hredis from the project
- hredis is awesome, but this makes the project have less complex compiled dependancies. You should add it to your project if you want fast redis communication, but it isn't *required* for actionHero to function
- hredis is awesome, but this makes the project have less complex compiled dependencies. You should add it to your project if you want fast redis communication, but it isn't *required* for actionHero to function
- This release adds more configuration options to webSockets in the form of `api.configData.webSockets.logLevel` (integer) and `configData.webSockets.settings` (which is an array strings which will be applied to socketIO's 'set' command)

## Version 3.0.0
Expand Down

0 comments on commit b22bdd5

Please sign in to comment.