Tyler Renelle
b0fc17bae5
chore(cluster): @colegleason I'm disabling cluster for now, people are
...
reporting more issues on develop (VersioError & 503) than before. Can
revert his commit in the near future, want to investigate a bit though
2014-01-19 14:52:57 -08:00
Tyler Renelle
7a479098dc
fix(tests): don't use cluster in tests, else we get "connection refused"
2014-01-18 10:55:56 -07:00
Cole Gleason
2e62cc675b
perf(cluster): user NodeJS cluster module to use all CPU cores
...
This makes the server.js file fork workers for the number of CPUs on the
system. Each worker will then bind to the MongoDB and Express
ports. They are really all using the same connection through the master
process, but this lets the logic happen in seperate threads. I do worry
that we may see more VersionErrors if one user makes more concurrent
API requests. That really isn't the fault of cluster though, as that
issue still would have been present in the previous single-core version.
2014-01-17 01:55:10 -06:00
Tyler Renelle
a2b30dcb1a
#2217 merge apiv2 route definitions with swagger decorations
2014-01-01 20:21:46 -07:00
Tyler Renelle
0edcfac46b
#2217 start adding APIv2 generated documentation via swagger-node-express
2014-01-01 15:33:37 -07:00
Tyler Renelle
1d6679298d
server: move config => utils, send headers along with error. Trying to
...
find out if some of these errors are mobile / not my own apps. Some
requests are malformed, but hitting apiv2's batch-api, i don't see how
this could be happening since both web and mobile are built to use apiv2
properly, unless a 3rd-party is trying to use apiv2 batch-api, but that
seems unlikely
2013-12-28 14:52:21 -07:00
Tyler Renelle
2332b15a55
add more details to errorHandler email
2013-12-27 12:22:26 -07:00
Tyler Renelle
e6e961f991
#2135 remove connect-domain commented-out examples
2013-12-26 22:39:40 -07:00
Tyler Renelle
1b8cba1945
#2135 use domain-middleware to handle top-level error-handling so we can
...
email admins UUIDs
2013-12-26 22:38:52 -07:00
Tyler Renelle
f60166301e
mongo auto_reconncet option
2013-12-16 09:00:49 -07:00
Tyler Renelle
259f9033c4
APIv2: add paths /api/v2/* and /api/v1/*. v1 has limited deprecated routes (only the things I know currently work), and we'll notify 3rd-partyists to migrate to apiv2 once it's documented and tested
2013-12-15 17:54:34 -07:00
Nick Gordon
b958103447
Merge branch 'develop' of https://github.com/snicker/habitrpg into develop
2013-11-15 06:20:37 -08:00
Nick Gordon
7bf1bf2af0
data export commit, supports exporting task history via csv
...
*adds the following new dependencies: moment, express-csv
*recommend replacing functionality of 'relative-date' with features from 'moment'
*supports retrieval of CSV history via the API and in browser
**/api/v1/export/history (requires typical API authorization)
**/export/history.csv (requires session authorization)
*adds new routes for data export
2013-11-15 06:18:16 -08:00
Matteo Pagliazzi
6e33b88c85
remove middleware.splash
2013-11-12 15:10:16 +01:00
Matteo Pagliazzi
1d9148eebb
move middleware.locals only where it is needed and transform it into a common function, simplify translations and adds automatic language detection
2013-11-12 14:49:01 +01:00
Tyler Renelle
1d5296880b
Merge pull request #1750 from HabitRPG/paglias/build-manifest
...
Paglias/build manifest
2013-11-05 10:29:12 -08:00
Matteo Pagliazzi
fbf57bde66
Merge branch 'develop' of https://github.com/HabitRPG/habitrpg into develop
2013-11-05 19:24:36 +01:00
Matteo Pagliazzi
5b9002820f
replace express.bodyParser with express.json & express.urlencoded since it is deprecated in connect 3.0
2013-11-05 19:24:11 +01:00
Tyler Renelle
ee35d16f4d
temporary log-suppressing so i can diagnose live a bit better
2013-11-05 09:34:09 -08:00
Matteo Pagliazzi
d0c29eba78
move js & css files to public/manifest.json, allow for stylus files editing without restarting server on development, removed hashres from dev build
2013-11-04 22:13:03 +01:00
Tyler Renelle
fa25f3d300
challenges: WIP beginning challenges feature. some basic CRUD & some
...
basic subscribe / unsubscribe functional (but buggy)
2013-10-28 11:34:07 -07:00
Matteo Pagliazzi
21823564c2
add caching
2013-09-10 14:40:00 +02:00
Matteo Pagliazzi
9cc92ccb25
serve all css minimized & static files from /build
2013-09-10 12:29:43 +02:00
Tyler Renelle
5cb6e7e0dd
fixes to emailing errors
2013-09-07 20:13:02 -04:00
Matteo Pagliazzi
9046bd5041
css
2013-09-06 21:39:18 +02:00
Matteo Pagliazzi
7cd075d787
initial grunt support, gzip enabled
2013-09-06 19:19:43 +02:00
Tyler Renelle
ab756a8634
#1422 force ssl
2013-09-05 22:53:35 -04:00
Tyler Renelle
ceae8bf768
rewrite: start adding facebook auth. note, this isn't going to work properly due to issues outlined in http://stackoverflow.com/questions/14572600/passport-js-restful-auth . gotta figure something out here...
2013-09-03 23:20:31 -04:00
Tyler Renelle
e5bafe7f0b
rewrite: 2-week session instead of 1h
2013-09-03 19:22:16 -04:00
Tyler Renelle
80fd023012
use cookieSession so we can launch in production mode
2013-09-02 21:38:05 -04:00
Tyler Renelle
ef9e1f3444
rewrite: push login modal to the front page, don't allow anonymous
...
usage.
2013-09-02 01:08:28 -04:00
Tyler Renelle
9befe8a7f8
api: move middleware up before app.router
2013-09-01 18:20:39 -04:00
Tyler Renelle
ad67cbcc1c
rewrite: begin the great server-side javascript migration
2013-08-28 23:21:06 -04:00