Commit Graph

349 Commits

Author SHA1 Message Date
Avital Oliver
f260ce2887 meteor logs -f: Properly close when we get an error from the logsForApp subscription 2013-05-30 15:20:50 -07:00
Slava Kim
878ca94a72 Throw if connection to logs failed. 2013-05-30 15:07:01 -07:00
Slava Kim
808c3c8f28 Add streaming options to logs (-f). 2013-05-30 15:04:48 -07:00
Emily Stark
9a4948d8ed Add postStartup hook that fires once webapp_server is listening. 2013-05-29 18:28:26 -07:00
Avital Oliver
0070812fba logs on stderr are warnings, not errors 2013-05-29 10:44:12 -07:00
Avital Oliver
80830ec2fe On 'meteor logs' from a galaxy, read from a separate log-reader app 2013-05-28 20:19:28 -07:00
David Glasser
8a7b1ddf35 Merge branch 'devel' into linker.
Conflicts:
	meteor
	packages/absolute-url/.gitignore
	packages/accounts-base/package.js
	packages/accounts-oauth/package.js
	packages/audit-argument-checks/.gitignore
	packages/coffeescript/.gitignore
	packages/coffeescript/package.js
	packages/localstorage-polyfill/.gitignore
	packages/oauth1/package.js
	packages/oauth2/package.js
	packages/random/random.js
	scripts/generate-dev-bundle.sh
	tools/packages.js
	tools/run.js
	tools/server/server.js
2013-05-28 15:10:48 -07:00
David Glasser
34c42d76b5 Upgrade Connect to 2.x.
Set $NODE_ENV appropriately (to 'development' in 'meteor run' and 'production'
otherwise) so that connect doesn't send stack traces over the network in
production.
2013-05-28 12:23:11 -07:00
David Glasser
6299f69754 Upgrade Connect to 2.x.
Set $NODE_ENV appropriately (to 'development' in 'meteor run' and 'production'
otherwise) so that connect doesn't send stack traces over the network in
production.
2013-05-28 12:14:11 -07:00
David Glasser
1a35b699e2 Fix hot code reload.
This was broken by 957729c, which switched the child process listener from
'exit' to 'close' but didn't update another line which removed that listener. So
we had an allergic reaction to killing our own subprocess.
2013-05-28 11:01:58 -07:00
Nick Martin
357ec8e8b8 Add more info to error message. #1064. 2013-05-24 19:01:28 -07:00
Avital Oliver
2cd6b2a7b2 'meteor logs' can now talk to a galaxy 2013-05-24 11:07:13 -07:00
Emily Stark
5a84a01d17 Change objFromText to Log.objFromText 2013-05-22 18:13:16 -07:00
Slava Kim
f6f69abd0b Remove one-time methods, split printColorfullyTextOrJSON 2013-05-22 16:36:10 -07:00
Slava Kim
6773112254 Print stderr with colors. 2013-05-22 15:22:01 -07:00
Slava Kim
77092dfe1d Add method that prints object and falls back to printing string. 2013-05-22 11:43:57 -07:00
Emily Stark
157a5a04ce Rename dev-bundle to dev-bundle-fetcher 2013-05-22 11:35:33 -07:00
Emily Stark
0866b15814 Add star-translate and dev-bundle packages
dev-bundle exposes the shell script that downloads the dev bundle. We need this
in a package because both star-translate and tools/bundler.js need access to it.
2013-05-22 11:35:33 -07:00
David Glasser
2aec63463b fix bundler tests 2013-05-21 18:03:41 -07:00
Slava Kim
6a05987abb Keep meteor package first. 2013-05-21 17:15:38 -07:00
David Glasser
8eeb9e97ef When running "meteor deploy --star", you don't need to be in an app dir. 2013-05-21 17:11:37 -07:00
Emily Stark
4616ac47fd Merge branch 'assetdir-fix' into linker 2013-05-21 17:07:43 -07:00
Slava Kim
7510d202e8 Extract logFromText into logging package.
So we can reuse it.
2013-05-21 16:58:53 -07:00
Slava Kim
e5b0377e3f Add 'logging' to the list of default packages. 2013-05-21 16:01:30 -07:00
Naomi Seyfer
dfdbbe6f16 make deploy work again by making the bundler stub main.js add program.json to the command line 2013-05-21 15:42:30 -07:00
Naomi Seyfer
770948338b Fixing various bugs that keep seismograph from running tests. Mostly package.js stuff 2013-05-21 15:19:01 -07:00
Emily Stark
7a73122352 Revert "Remove references to assetPathPrefix that I missed"
This reverts commit c45952df35ed949bda65b13e3e7fef9a0d9474d5.
2013-05-21 11:10:16 -07:00
Emily Stark
5c6617660d Fix stomped-on assetPathPrefix in addAssetDir 2013-05-21 11:10:16 -07:00
Emily Stark
75d9f04c5d Add test for bundling apps with public/ directories 2013-05-21 11:10:15 -07:00
Emily Stark
91e715b584 Revert "Fix addAssetDir bugs"
This reverts commit 5a3baa592cf1d4f5b14eddf2ac760886d81a6737.

Conflicts:
	tools/bundler.js
2013-05-21 11:10:15 -07:00
estark37
e6e509ad86 Remove references to assetPathPrefix that I missed 2013-05-21 11:10:15 -07:00
estark37
e91ec6b853 Remove unused var assetPath 2013-05-21 11:10:15 -07:00
estark37
b1c3dc40bd Fix addAssetDir bugs
One bug (I think) was the the assetPath argument to walk() was getting stomped
on and therefore not being used, so I removed the argument. Another bug was that
the url for an asset was being set from the file's absolute path.
2013-05-21 11:10:15 -07:00
Naomi Seyfer
d716da7746 Allow you to directly deploy a star file 2013-05-20 18:13:30 -07:00
estark37
9feabf41c2 Progress towards deploying apps to galaxy
Mostly changing "service" to "app"
2013-05-17 22:43:56 -07:00
David Glasser
957729c8ce Get run-tools-tests.sh passing.
In addition to minor "make the tests match the code" changes, there's also:

 - missing require('tar') in tarball download code
 - fix an fd leak in the bundler that was causing EMFILE on mac
 - switch run.js to listening for 'exit' to 'close' so that the end
   of stdout/err can be read
 - some concerningly necessary deletions of .build directories

Also, the version of cli-test.sh that runs against a fixed release is disabled,
since we're not building releases with the new package format for now.
2013-05-17 18:19:20 -07:00
Naomi Seyfer
e87412e7ee Make one part of deploy not depend on the context to have Meteor.Error 2013-05-16 13:33:39 -07:00
David Glasser
cfa11f0035 Make sure all node_modules go in a node_modules directory. 2013-05-16 13:32:35 -07:00
David Glasser
d36a8f3c91 Kill node_modules directory instead of renaming it. 2013-05-16 13:32:25 -07:00
David Glasser
f0875d1d25 No longer implicitly use all packages in an app's packages/ directory.
This allows you to include "test helper" packages there which are only used in
test mode, as well as other internal packages which shouldn't be exported into
your app.

test-packages still tests them.
2013-05-15 19:16:50 -07:00
Avital Oliver
d38034f35d Fix client/compatibility/ in a non-nested directory 2013-05-15 15:02:07 -07:00
Avital Oliver
627f346b95 Meteor server logging API
Also colorize and print nicely in run.js
2013-05-15 14:54:35 -07:00
David Glasser
d156f080af Stop livedata from depending on routepolicy.
That brought in all of webapp, which only works on "type: traditional" targets,
not server-only.

(We really should split the Node DDP Client code from the Node DDP Server code
instead.)

(Maybe routepolicy should just be part of webapp, or webapp should depend on
routepolicy? It's awkward to need to list it separately in various places...)
2013-05-14 20:13:55 -07:00
David Glasser
2d827e74fc Factor webapp-specific stuff (and keepalive) out of boot.js into webapp package.
Replace type: "bare" with type: "server" in attributes.json.  This now just
means "only make one server process" rather than controlling the boot script.

Programs that are type: "traditional" that want to be a webapp now need to
explicitly depend on the webapp package.
2013-05-13 11:58:58 -07:00
Naomi Seyfer
31bd79c54b actually attempt to fetch the route from the env var that we put it in 2013-05-13 11:58:57 -07:00
Naomi Seyfer
3aa28e54ab some changes necessary to make various packages work together 2013-05-13 11:58:57 -07:00
Naomi Seyfer
4a9c1444f9 actually have lin as an arch 2013-05-13 11:58:57 -07:00
Naomi Seyfer
ae43e039f3 Fix target script to not hardcode linux? 2013-05-13 11:58:57 -07:00
David Glasser
258f6f4502 hardcode correctly 2013-05-13 11:58:57 -07:00
David Glasser
beeaac05b9 temporarily hardcode linux 2013-05-13 11:58:57 -07:00