Commit Graph

336 Commits

Author SHA1 Message Date
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
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
David Glasser
5520163647 deps into DATA_DIR 2013-05-13 11:58:57 -07:00
David Glasser
1383e3b5e0 lastStart is actually lastStarted 2013-05-13 11:58:57 -07:00
Geoff Schmidt
b51865acac Pass '--program' to 'meteor run' to run a different program.
You get automatic restarts and by the same token you get a proxy.
2013-05-13 11:58:57 -07:00
David Glasser
b9179fa2d3 boot.js: new pid structure 2013-05-13 11:58:43 -07:00
Geoff Schmidt
37e02c5e38 remedy version skew in bundler.js 2013-05-13 11:58:43 -07:00
Geoff Schmidt
f479226cfa Construct JsImage target npm path correctly, even if we're writing
the JsImage to the very top of its bundle.
2013-05-13 11:57:48 -07:00
Geoff Schmidt
524daf4379 minor builder path sanitization tweaks 2013-05-13 11:57:48 -07:00
Geoff Schmidt
5d4a34dce6 Better error reporting in run-command 2013-05-13 11:57:48 -07:00
David Glasser
ab3c30f577 Fix command-line parsing with --keepalive. 2013-05-13 11:57:48 -07:00
David Glasser
8ec4e07961 Add a close method on DDP client connections.
It's implemented by the forceDisconnect method on streams. Fix forceDisconnect
on Node streams when forceDisconnect is called during the initial connection.
2013-05-13 11:57:47 -07:00
David Glasser
91f5d3c132 Specify insecurePort, not securePort. 2013-05-13 11:57:47 -07:00
Geoff Schmidt
4ca5b0ebe7 'meteor deploy' works to a galaxy 2013-05-13 11:57:34 -07:00
David Glasser
437b174b16 If $METEOR_DEPLOY_CONFIG is specified, apps bind to a Galaxy proxy. 2013-05-13 11:57:21 -07:00