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

feat: configuration file / flags #80

Merged
merged 1 commit into from
Mar 16, 2023
Merged

feat: configuration file / flags #80

merged 1 commit into from
Mar 16, 2023

Conversation

threepointone
Copy link
Contributor

This adds a configuration file for partykit projects. It looks for partykit.json by default, but you can pass -c / --config to a custom path if you'd like. Fields: name: corresponds to project name
main: corresponds to path to script
port: local dev port number
vars: a bag of key values, where values can be any serialisable object. this can be overriden by .env files, or --var X=A flags define: a bag of key values, where values can be strings representing js expressions.

This PR also refactors the user login/config logic, but shouldn't have broken anything.

This also adds a env push command to upload a bunch of env vars at one, collecting values partykit.json and .env

This adds a configuration file for partykit projects. It looks for partykit.json by default, but you can pass -c / --config to a custom path if you'd like. Fields:
name: corresponds to project name
main: corresponds to path to script
port: local dev port number
vars: a bag of key values, where values can be any serialisable object. this can be overriden by .env files, or --var X=A flags
define: a bag of key values, where values can be strings representing js expressions.

This PR also refactors the user login/config logic, but shouldn't have broken anything.

This also adds a `env push` command to upload a bunch of env vars at one, collecting values partykit.json and .env
@threepointone threepointone merged commit 232340d into main Mar 16, 2023
@threepointone threepointone deleted the config-file branch March 16, 2023 13:49
This was referenced Mar 16, 2023
@threepointone threepointone mentioned this pull request Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant