Commit Graph

62 Commits

Author SHA1 Message Date
Emily Stark
d785da8dcd Skip unknown usernames rather than print "<unknown>".
Not sure what the original motivation for printing <unknown> was (it
shouldn't ever come up in normal operation, only if something weird
happens like we manually unset a user's username in the database). But
it's now rather inconvenient because we don't yet clean up deleted
organizations from a site, so you would see <unknown> for every
authorized organization that has been deleted. While we should
eventually clean up deleted organizations from a site's
"authorized_orgs" field, for now this will clean up the output of this
command.
2014-08-27 08:54:18 -07:00
David Glasser
1ff35e49fb list-sites sorts its output. fix test. 2014-08-21 19:37:05 -07:00
Emily Stark
81a0a0c7e2 Update to new package stats format 2014-08-21 18:23:38 -07:00
David Glasser
b6955a3899 Move towards non-singleton catalog.complete
We're going to make uniload use a different flavor of "complete" catalog
soon.  So we need to reduce the number of singleton-ish references to
it.

Also, we need one PackageCache per catalog, so stop it from being a
singleton too.
2014-08-13 18:11:46 -07:00
Avital Oliver
aff7dfdb50 Record package usage on meteor bundle
Also eliminated arguments that weren't used anywhere,
and removed an XXX comment that was false (recordPackages
doesn't use buildmessage to report connection failures)
2014-08-13 13:57:08 -07:00
David Glasser
7d05640ea0 Make buildmessage fiber-aware
Port a simplified version of Meteor.EnvironmentVariable and
Meteor.bindEnvironment to fiber-helpers.js to deal with this.

Identify uses of fiberHelpers.inFiber and switch them to either
fiberHelpers.bindEnvironment (if the callback they are wrapping is
semantically "part of" the context that creates the callback) or
fiberHelpers.inBareFiber (otherwise).

Without this, concurrency was causing the wrong buildmessage message
sets and jobs to be active when builds yielded.
2014-08-04 19:03:05 -07:00
David Glasser
06a7dc90b5 Add many buildmessage.capture/assertInCapture
Moving towards a world where all things that might invoke buildmessage.error are
encouraged to be in a buildmessage.capture.

This commit is the answer to the question "how many small changes need to be
made to add buildmessage.assertInCapture to PackageCache.loadPackageAtPath?"

Next steps include:
 - Making catalog.resolveConstraints ALWAYS buildmessage.assertInCapture
   (not just when ignoreProjectDeps isn't passed)
 - Then changing resolveConstraints to complain using buildmessage
 - Removing the process.exit(1) in _ensureDepsUpToDate
 - Adding a more structured way to ensure that most commands
   call _ensureDepsUpToDate at an unsurprising location
2014-07-30 22:16:21 -07:00
David Glasser
ddba5d4a3f Never copy dev bundle node_modules into bundle
symlink as a special case for runner only

future commits on this branch will add a
package.json/npm-shrinkwrap.json that can be used by "meteor bundle"
users
2014-07-01 14:09:44 -07:00
Avital Oliver
69cd9ccd8c Oops. This is the right merge conflict fix. 2014-06-16 14:06:16 -07:00
Avital Oliver
6ea5ab0ed1 Don't record package usage when running meteor test-packages 2014-06-16 14:02:47 -07:00
David Glasser
c5e5305a3b Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/packages.js
2014-06-11 12:02:57 -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
ekatek
1cf0655da4 Bundler should not take appDir and loader as arguments anymore 2014-05-30 18:32:49 -07:00
ekatek
6f3504a2d3 project refactoring, wip 1 2014-05-21 15:42:12 -07:00
Emily Stark
4997d57b5b Report package usage on bundle and deploy 2014-05-12 11:02:49 -07:00
David Glasser
fbde0a00a7 Merge branch 'publish-packages' into library-refactor
Conflicts:
	packages/domutils/package.js
	packages/handlebars/package.js
	packages/htmljs/package.js
	packages/liverange/package.js
	packages/spark/package.js
	packages/universal-events/package.js
	tools/bundler.js
	tools/help.txt
	tools/packages.js
	tools/run-app.js
	tools/run-mongo.js
	tools/skel/.meteor/packages
2014-04-24 17:01:36 -07:00
Emily Stark
e872bc72e3 Add 'meteor list-sites' command 2014-03-24 10:36:18 -07:00
ekatek
4f84ac57ba add in ctl hack and factor out project package loader 2014-03-18 16:24:45 -07:00
Emily Stark
cebffa7848 Use stderr for login prompt on deploy with expired token 2014-02-19 23:43:35 -08:00
Emily Stark
829dfdac68 Don't log out an invalid session immediately before deploy.
When we deploy:
* If we are logged in with a username, then we go straight to doing the
  actual deploy.
* If we are logged in without a username, we check if we have a username
  yet. If we have an invalid credential at this point, we do NOT want
  `pollForRegistrationComplete` to wipe our session file, because we
  already passed the point at which we handle the case of the user being
  logged out. Instead, we just want to continue with the deploy and let
  the deploy server handle the expired credential. (This case, where a
  user's credential has been expired before they set a username,
  shouldn't happen too often in real life.)
* If we deploy with an invalid credential, we get an "Expired
  credential" message.
2014-02-19 19:35:19 -08:00
Emily Stark
023276cd50 Only show username prompt on deploy if we know the user has a username.
We don't want a user to see a username/password prompt if they haven't
set a username yet.
2014-02-19 15:52:57 -08:00
Emily Stark
2ff0fa38ed Correctly check for current username when deploying 2014-02-19 15:49:46 -08:00
Geoff Schmidt
92abbf2f5c deploy server now returns 401 for invalid credentials 2014-02-19 12:34:33 -08:00
Geoff Schmidt
d1d714ec66 'whoami' gracefully handles revocation of a credential
on a passwordless account. with test
2014-02-18 17:25:19 -08:00
Geoff Schmidt
d3291f7234 one space after period 2014-02-18 15:44:09 -08:00
Geoff Schmidt
96e3273f28 make account setup link even more handy 2014-02-18 15:43:55 -08:00
Emily Stark
a4e5a07cab Fix mistaken infoResult.payload check on 'meteor claim' 2014-02-13 11:48:01 -08:00
Emily Stark
76464f647d Give login prompt when necessary on logs/mongo commands.
Add tests for authentication on logs and mongo commands.
2014-02-12 11:22:57 -08:00
Emily Stark
6f74596ab0 Add error messages for 'meteor mongo' too.
And some tests for logs error messages.
2014-02-11 15:12:52 -08:00
Emily Stark
c14cc0e6ca Add 'meteor logs' error messages for legacy-password/unauthorized apps. 2014-02-11 14:43:07 -08:00
Emily Stark
1f8fa55c69 Change capitalization of Meteor developer accounts 2014-02-11 11:20:21 -08:00
Emily Stark
c4315d38fb Print registration URL after deploy 2014-02-11 11:15:41 -08:00
Emily Stark
b771f4042e Clean up some legacy app error messages 2014-02-09 17:15:26 -08:00
Emily Stark
aabed4665c Print login failed error message once instead of twice 2014-02-06 10:14:32 -08:00
Emily Stark
4f417b402a Prompt for login if the user isn't already logged in 2014-02-06 08:02:00 -08:00
Geoff Schmidt
b940e06006 make getSettings report problems cleanly
(using buildmessages rather exceptions)
2014-01-08 17:18:32 -08:00
Geoff Schmidt
a1decc47af eliminate process.exit calls in deploy.js 2014-01-07 19:04:48 -08:00
Geoff Schmidt
04b2957670 better error handling in deploy-galaxy.js 2014-01-07 18:52:59 -08:00
Geoff Schmidt
9813345e15 move runMongoShell to appropriate file. fix some bugs. 2014-01-06 23:30:19 -08:00
Geoff Schmidt
608123d886 runner refactor - WIP (factor out AppRunner, Updater) 2014-01-02 11:26:51 -08:00
Geoff Schmidt
9db5fec711 files: update code style 2013-12-30 06:11:04 -08:00
Geoff Schmidt
4fc8c0d1f3 Eliminate context everywhere!!
Add release.js to manage current release.
2013-12-30 05:16:21 -08:00
Geoff Schmidt
943600df9b Fix bug where preflighted password RPCs on old-style apps wouldn't work 2013-12-19 15:42:33 -08:00
Geoff Schmidt
a314eb7d62 Switch from cookies to headers for Meteor auth 2013-12-18 15:36:04 -08:00
Geoff Schmidt
f590c2567a better handling of bad userids 2013-12-11 05:54:47 -08:00
Geoff Schmidt
d168857ab6 refactor http auth 2013-12-08 05:58:08 -08:00
Geoff Schmidt
a95f9eb480 Refactor/fiberize deploy RPCs. Add basic Meteor Accounts support. 2013-12-06 19:22:10 -08:00
Geoff Schmidt
a74e351705 centralize service configuration 2013-12-06 19:10:15 -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