Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create package database with a minimum of necessary data #5391

Closed
sebakerckhof opened this issue Oct 8, 2015 · 2 comments
Closed

Create package database with a minimum of necessary data #5391

sebakerckhof opened this issue Oct 8, 2015 · 2 comments

Comments

@sebakerckhof
Copy link
Contributor

For my open-source meteor package server: https://github.com/sebakerckhof/stratosphere I'm trying to reduce the friction/installation steps for switching package servers.

Currently if you switch package servers (by setting the METEOR_PACKAGE_SERVER_URL env var), meteor will create an empty database file in the packages-metadata folder.
However, since it is empty, meteor will give Error: Can't get default release version for track undefined errors for almost anything you try to do.

To solve this, users of stratosphere currently need to copy and rename the existing package db file themselves, and on first connection with stratosphere, they'll receive a database reset command.
It would be great if this step could be left out. The simplest solution would be for meteor-tool to automatically copy and rename the default package server database, but reset the synchronization token to something that would trigger a database reset.

If could create a PR for this if you agree with this approach.

@stubailo
Copy link
Contributor

Currently, supporting this functionality isn't a priority for the project. Perhaps you could just give people a small setup script to run that does what you're suggesting, rather than building it into the tool?

@sebakerckhof
Copy link
Contributor Author

Yeah, I'll close this one since it has little chance of ever becoming a priority. I'll try something different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants