Commit Graph

1196 Commits

Author SHA1 Message Date
Emily Stark
130d1a61fb Remove reload safetybelt selftest.
It's been replaced by package tests (webapp, reload-safetybelt).
2014-06-26 15:08:41 -07:00
Emily Stark
1c90d0410c galaxy-reload-safetybelt -> reload-safetybelt 2014-06-26 15:08:41 -07:00
Emily Stark
b76f3e67c8 Move reload safety belt into an opt-in package 2014-06-26 15:08:41 -07:00
David Glasser
b249f77b21 Never add two sourceMappingURL notes to a file
(eg, when roundtripping through JsImage.readFromDisk)

Pre-0.9.0 this just means excessive rebuilds; on the packaging branch,
this means excessive version number bumps!
2014-06-23 22:28:01 -07:00
Emily Stark
e551266c26 Add npm install bcrypt to bundle README 2014-06-23 16:35:07 -07:00
Emily Stark
1c12b1a49f Merge branch 'master' into devel
Conflicts:
	History.md
	packages/accounts-password/password_server.js
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
	packages/ui/base.js
2014-06-23 08:18:19 -07:00
David Glasser
4bec4877e3 after startup, Meteor.startup(c) should call c now
This was the client behavior and is now the server behavior as well.

Fixes #2239.
2014-06-18 17:05:05 -07:00
Slava Kim
71d228f14f Merge branch 'server-source-maps' into devel
Enables the support for source maps for the server-side code.
It is very useful when toolings like node-inspector or node-profiler are used.
2014-06-17 00:29:45 -07:00
Slava Kim
4dfcba8bdc Update the comment 2014-06-16 19:36:52 -07:00
Slava Kim
7258643fbf For files with source maps, use absolute paths map the stack-trace. If no source
map found, don't bother.
2014-06-16 19:32:58 -07:00
Slava Kim
21c4caf2f7 Resolve paths with path.resolve 2014-06-16 19:22:33 -07:00
Slava Kim
f6084927f9 Prefer += operator for strings concatenation to String#concat 2014-06-16 19:22:10 -07:00
Slava Kim
36004dc435 Use the filepath from builder in the sourceMappingURL ref 2014-06-16 19:20:19 -07:00
Emily Stark
1180597f06 bump dev bundle; upgrade node 2014-06-16 18:17:21 -07:00
Emily Stark
7336bf901b bump some self-test timeouts 2014-06-16 18:15:38 -07:00
Slava Kim
d59ab1850d Reference source-map in the server-side code's source
It is not needed for mapped stack-traces but is necessary for node-inspector.
2014-06-15 16:02:22 -07:00
Slava Kim
c8a5800cf0 boot.js passes the absolute path to the loaded source
relative paths confuse node-inspector and possibly other tools
2014-06-15 15:55:09 -07:00
David Glasser
31a5f4014f Improve comment and message
Make sure that it shows you that it added '.meteor.com'.
2014-06-10 17:10:34 -07:00
J. Bruni
ab5c2513cd Show meaningful deploy error message for long hostname
https://github.com/meteor/meteor/issues/1208#issuecomment-45158503
2014-06-10 17:05:28 -07:00
Slava Kim
0f82f8406a Remove a dead import 2014-06-05 14:44:13 -07:00
Emily Stark
e6271d6a7d Tweak error message for circular build-time deps 2014-06-02 14:15:17 -07:00
David Glasser
bceab2cbb6 Notice changes to npm-shrinkwrap.json
There were two separate issues here:

 - npm-shrinkwrap.json wasn't actually being used as part of the
   watchset/buildinfo, so changes to it might not cause the package to
   be considered for rebuilding

 - meteor-npm only compared top-level changes when deciding whether to
   update, not all changes

Fixes #1648
2014-06-02 14:06:11 -07:00
David Glasser
2e79408658 start up mongo even if 'ps ax' output is >200KB
10MB should really be enough though.

Fixes #2158.
2014-05-23 18:08:13 -07:00
David Glasser
00157d8aed meteorNpm.dependenciesArePortable skip bad symlink
stat fails if a symlink points to something nonexistent. since we're
literally looking for stuff physically under a directory, we don't need
to chase symlinks.
2014-05-23 17:53:35 -07:00
Kenton Varda
2c7e71b47d Add option to meteor bundle to output a directory.
This is useful when the output tarball would just be unpacked immediately
anyway, e.g. because it is part of a larger build process. This shaves
eight seconds off my build. :)
2014-05-22 19:32:41 -07:00
David Glasser
21bc8be7df get error message in 'ps ax' failure case
We still want JSON.stringify too because that includes stuff like the
exit code.

See #2158
2014-05-22 15:43:26 -07:00
Emily Stark
bf8426322c Merge branch 'master' into devel 2014-05-22 09:50:17 -07:00
Emily Stark
107e908757 Remove short aliases for meteor authorized in help text.
Fixes #2155.
2014-05-21 11:21:01 -07:00
Emily Stark
6189a92536 Revert "Add short aliases for '--add' and '--remove' options in "meteor authorized""
This reverts commit 32fc06e7f8.

As Glasser points out, our command option parsing is such that all `-a`
flags for commands have to be consistent in whether they are boolean or
not. Since we could easily imagine wanting a boolean `-a` or `-r` flag
in the future, we should be careful about adding these aliases. We'll
update the docs to remove `-a` and `-r` instead.
2014-05-21 11:08:46 -07:00
Slava Kim
32fc06e7f8 Add short aliases for '--add' and '--remove' options in "meteor authorized"
Fixes #2155
2014-05-20 17:32:25 -07:00
Slava Kim
6f8e18b5d7 Add short aliases for '--add' and '--remove' options in "meteor authorized"
Fixes #2155
2014-05-18 01:39:53 -07:00
Avital Oliver
5358af451c selftest: return null when reading a file that doesn't exist 2014-05-08 16:21:05 -07:00
Felix Rabe
819bdb31b0 Looks like a typo (untested minor change) 2014-05-07 17:55:08 -07:00
Felix Rabe
d22a10cf1c Typo 2014-05-07 17:55:07 -07:00
Felix Rabe
3431c66c16 Fix occurrences of "cd dirname $0"
They are not safe for spaces in paths. There might be other places to look for trouble.

I've run the following command to produce this commit: (on OS X, copy-and-pasting the below exactly)

    find . -type f -name '*.sh' -print0  |  # Find all .sh files
        xargs -0 fgrep -H -- '`'         |  # See all places with backticks in them
        fgrep 'cd `dirname $0'           |  # I deemed these problematic (variable assignments are safe)
        cut -d ':' -f 1                  |  # Take the <file> from <file>:<line> produced by "grep -H"
        tr '\n' '\0'                     |  # Also here, spaces can be problematic - always do "xargs -0"!
        xargs -0 -- sed -i '' 's/cd `dirname $0`/cd "`dirname "$0"`"/g'

The significance of adding the two levels of "'s can be verified by running the following in your Terminal:

    $ node -e 'console.log(process.argv.splice(1))' -- `echo 1   2`
    [ '1', '2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo 1   2`"
    [ '1 2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo "1   2"`"
    [ '1   2' ]
2014-05-07 17:51:09 -07:00
David Glasser
f2e2a781cc Update Node to 0.10.28 which includes our npm fix 2014-05-02 10:59:37 -07:00
David Glasser
e0fcd2c2ed update regexp for new version of npm
also, use quotemeta where necessary
2014-04-30 18:03:54 -07:00
David Glasser
314c8a1a34 We no longer need to pass --force to npm install
(Also, make a test assertion useful: assert.equal's default truncation
is horrible.)
2014-04-30 18:03:53 -07:00
David Glasser
5137250aee Improve 'meteor mongo' error message
Fixes #1256
2014-04-30 17:35:04 -07:00
Emily Stark
0a5297d39b Bump a test timeout 2014-04-26 14:46:32 -07:00
David Glasser
a8869d07ec Provide a better error if ROOT_URL is not an URL
Fixes #1404.
2014-04-22 15:52:52 -07:00
Stephen Darnell
a9f65f0759 Stop node tar from including proprietary tags
The linux tar whinges about unrecognised headers (though newer versions
include an option to not warn).
By building tar files without proprietary, we will be able to use
files.createTarball() in more places.
For example, undo commits 1c36bbaa79 and
1e2a40ef2b
2014-04-21 18:45:21 -07:00
Emily Stark
568b0f929c Change 'port' to 'proxyPort' in test-packages and update run-all comment.
run-all interface was changed in 9b8bd31a.
2014-04-20 17:23:03 -07:00
David Glasser
afd9640bb6 Remove outdated comment
We no longer have a restriction that short options only take numbers
2014-04-18 14:39:50 -07:00
David Glasser
3fc4a30bfe Better error message for -p bogus:1234 2014-04-18 14:39:31 -07:00
David Glasser
9b8bd31a7b Allow specifying interface with -p and --app-port
The syntax is "--port host:port".

Not implemented for test-packages. No control is available over mongo
ports (port or host).

Fixes #469 and #1105.
2014-04-18 14:15:14 -07:00
David Glasser
a4a66aeede tools api change: rename port to proxyPort 2014-04-18 13:43:51 -07:00
Emily Stark
2b27950619 Add a basic test for 'meteor list-sites' 2014-04-17 16:58:08 -07:00
Emily Stark
a03ff1b614 Merge branch 'list-apps' into devel 2014-04-17 16:57:58 -07:00
David Glasser
72c9657b0e Test that observeChanges works over a failover 2014-04-10 16:56:32 -07:00