Commit Graph

677 Commits

Author SHA1 Message Date
Nick Martin
9dfa0ee95f Update tools tests for Webapp bundled asset change 6eccf8c 2013-12-15 17:17:41 -08:00
David Glasser
8de5ebfc6f Become able to kill mongod spawned by pre-oplog branches 2013-12-11 17:04:06 -08:00
Nick Martin
89ec9ddf62 Up timeout for printing mongo message. This way it doesn't happen normally during cold start (3--4 sec). 2013-12-10 22:13:12 -08:00
David Glasser
b4c14af032 Fix find_mongo_pids regexp
Also add some comments to mongod options.
2013-12-10 19:09:41 -08:00
Nick Martin
f9b394de4f Use smaller oplog (8MB instead of 256MB default).
This uses less space on disk and starts up faster. It might mean
people hit the end of the oplog if the server gets really slow.
But, hey, then we can debug and test more oplog error modes.
2013-12-10 17:47:49 -08:00
Nick Martin
1b08ac2d9d Upgrade to stock Node 0.10.22.
This discards our fix for stream pausing. We'll monkey patch it in
at startup instead of relying on a custom build.
2013-12-10 15:27:40 -08:00
David Glasser
d16cd33242 Improve bundler comment 2013-12-06 13:38:51 -08:00
Emily Stark
6eccf8cbbb Add an optional prefix for bundled js and css files.
Set it with `WebAppInternals.setBundledJsCssPrefix(prefix)`.
2013-12-05 17:52:35 -08:00
David Glasser
593d980ba6 implement 'test-packages --disable-oplog' 2013-12-04 12:54:27 -08:00
David Glasser
e9e39d2cb2 Rename $OPLOG_URL to $MONGO_OPLOG_URL 2013-12-02 19:17:39 -08:00
Nick Martin
5f1b721823 Fix meteor run to look at the OPLOG_URL environment variable. 2013-12-02 19:17:36 -08:00
Slava Kim
008c74df4b OPLOG_URL is accessed only by appConfig. 2013-12-02 19:17:35 -08:00
David Glasser
b4a598b3e5 Close connection to DB used to set up oplog. 2013-12-02 19:17:33 -08:00
David Glasser
0ddf232773 Restore accidentally-deleted mongo restart code.
Thanks, cli-test.sh!
2013-12-02 19:17:31 -08:00
David Glasser
7f85f38110 Change repl set name from dummy to meteor.
This name ends up in the "meteor mongo" prompt, and a prompt of "dummy:PRIMARY>"
is way less welcoming than "meteor:PRIMARY>".
2013-12-02 19:17:28 -08:00
David Glasser
40befb8023 minor improvements 2013-12-02 19:17:28 -08:00
David Glasser
123c06ac3f oplog checkpoint from friday 2013-12-02 19:17:24 -08:00
David Glasser
6637656261 Don't reset the replset unless the port changes.
(Resetting the replset is slow!)
2013-12-02 19:17:24 -08:00
David Glasser
878dfe9a1f In "meteor run", run mongo in repl-set mode, so that oplog is available.
Note: this is pretty slow. Before merging this branch, should cache the fact
that replset has been initiated on port N so that on the next run, if the port
hasn't changed, we don't need to re-initiate.
2013-12-02 19:17:24 -08:00
David Glasser
e11228a3f8 Clean up package dirs containing only ".build"
These directories are often left around when switching from another
branch; git does not delete the gitignored .build directory (but it will
show up annoyingly in 'git status').
2013-12-02 17:50:30 -08:00
David Glasser
8ab66ff255 Stop using handlebars in the bundler.
The dev bundle contains a copy of the handlebars NPM module solely for
creating app.html.  This is separate from the NPM module used by the
handlebars NPM package.

On the shark branch, we no longer use the handlebars NPM module for
Meteor template (it is being replaced by Spacebars), so in preparation
for that, we'll remove this barely-used build-time dependency on
handlebars.

A subsequent commit will remove it from the dev bundle.

Once the Spacebars API has fully settled (eg, it has been merged to
devel), we should get rid of this ad hoc templating and replace it with
Spacebars, either in webapp_server (driven entirely by program.json) or
by using unipackage.load in bundler.
2013-12-02 17:15:37 -08:00
David Glasser
c066b90e1c Add comment referencing #1648 2013-12-02 16:59:50 -08:00
David Glasser
b2b5e323eb set x-forwarded-* headers in 'meteor run'
This was a regression in 0.6.6 when we upgraded to a new unreleased
version of http-proxy which now requires an explicit option to set them.
See #1624.
2013-11-25 17:16:57 -08:00
Alexey Komissarouk
60f88dcc0f asking for password on stdout so url can be used in scripts 2013-11-18 17:03:41 -08:00
Naomi Seyfer
3e2fde9cbe Merge branch 'devel' into follower 2013-11-07 16:22:35 -08:00
Emily Stark
8d7a3f6591 Include release stamp in star.json 2013-11-04 22:09:45 -08:00
Slava Kim
ac376b6db8 Introduce '--raw-logs' option to meteor run to disable logs parsing. 2013-11-03 22:09:17 -08:00
Emily Stark
42e9d79152 Merge branch 'devel' into follower 2013-11-01 14:22:29 -07:00
Naomi Seyfer
7994ccc1a8 Push the star manifest to galaxy on star upload 2013-10-31 18:08:56 -07:00
Emily Stark
652eb0cb89 Merge remote-tracking branch 'origin/follower-node0.10' into follower
Conflicts:
	docs/client/concepts.html
	meteor
	packages/follower-livedata/follower.js
	packages/livedata/livedata_server.js
	packages/webapp/.npm/package/npm-shrinkwrap.json
	packages/webapp/package.js
	packages/webapp/webapp_server.js
	scripts/generate-dev-bundle.sh
	tools/bundler.js
	tools/meteor.js
	tools/server/boot.js
2013-10-31 15:47:17 -07:00
David Glasser
5884d0b2d1 Update fibers instructions in README.
Now it matches the instructions in the docs.

Fixes #1519.

(All of this is a mess; we should stop using the dev bundle in
deployments entirely.)
2013-10-22 18:23:35 -07:00
David Glasser
9ab15d4c29 Bundler failures should cause non-zero exit code.
Fixes #1515.
2013-10-22 16:59:06 -07:00
David Glasser
daf0a4801a Ensure 500 ms of directory watch downtime.
Should help with #1506.

Fingers crossed for an eventual usable fs.watch.
2013-10-22 16:10:57 -07:00
Nick Martin
baa6aa56a0 Bump node version from 0.8.24 to 0.8.26 for Meteor 0.6.5.2 release.
Conflicts:
	History.md
2013-10-21 17:07:01 -07:00
Nick Martin
2b4fb9b37d Merge branch 'master' into devel
Conflicts:
	History.md
	meteor
2013-10-21 16:51:16 -07:00
Nick Martin
f4e21c0d37 Bump node version from 0.10.20 to 0.10.21 for Meteor 0.6.6.2 release. 2013-10-20 22:02:25 -07:00
David Glasser
67a7c2786b Don't hash settings file during deploy. 2013-10-19 01:03:50 -07:00
David Glasser
606a94b41d Calculate settings file hash properly. Fixes #1497.
Previously we were hashing the Unicode string, not the bytes.

This also removes a race condition. Now there is only one use of
watchSet.addFile which does not go through
watch.readAndWatchFile (adding package.js hashes to multiple watch sets
at once), and that use does correctly hash the bytes.
2013-10-18 16:18:24 -07:00
Nick Martin
4329071334 use a non-default port in tests so we don't fail if someone is running an app at the same time. 2013-10-16 14:59:38 -07:00
Nick Martin
d05560d12f Don't us fs.watch. Cherry pick and squash 2b8e4a2975 2013-10-11 16:31:40 -07:00
David Glasser
6c0f7dff02 Yield during background directory watches. 2013-10-11 14:18:05 -07:00
Nick Martin
085b9bb0e5 Remove now unneeded double check. 2013-10-11 13:11:22 -07:00
Nick Martin
135de89282 Rip out fs.watch entirely. 2013-10-11 13:09:27 -07:00
Nick Martin
287d43bd99 Don't use fs.watch. Poll directory contents instead. 2013-10-11 10:01:29 -07:00
Stephen Darnell
8883056bf7 Switch to socket.end() 2013-10-09 09:59:24 -07:00
Stephen Darnell
31669c7dd5 Switch to socket.end() 2013-10-09 09:58:08 -07:00
David Glasser
bda5113fa5 meteor run: Handle errors in the websocket proxy by closing socket instead of
throwing
2013-10-07 14:18:29 -07:00
David Glasser
94c7833c82 Delete unused JSAnalyze.findGlobalDottedRefs.
Because it is currently unused and was the only direct use of the 'estraverse'
module, it seems better to minimize the number of dependencies shipped with
Meteor. Admittedly, estraverse is still a dependency of escope, but if we
upgrade escope to a version that has a more specific version requirement for
estraverse that conflicts with our Npm.depends, we'll be shipping two copies for
no reason.
2013-10-04 09:46:48 -07:00
David Glasser
8062d65730 Update for new 'keypress' API. 2013-10-03 16:59:44 -07:00
David Glasser
0f0542efb1 Replace byline npm module with eachline.
Node 0.10-compatible versions of byline (eg 3.1.2) drop empty lines.
2013-10-03 15:52:20 -07:00