-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
🪟 🔧 Add a start:cloud command to the webapp #19026
Conversation
@@ -9,6 +9,8 @@ | |||
"prepare": "cd .. && husky install airbyte-webapp/.husky", | |||
"prestart": "npm run generate-client", | |||
"start": "craco start", | |||
"prestart:cloud": "npm run generate-client", | |||
"start:cloud": "AB_ENV=frontend-dev node -r ./scripts/environment.js ./node_modules/.bin/craco start", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ Using AB_ENV
here (we use AB
across infra more commonly as an abbreviation of Airbyte), to not collide with the standardized ENV
variable for production
vs development
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow I had not yet realized what AB
signified 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement! 🎉
@@ -9,6 +9,8 @@ | |||
"prepare": "cd .. && husky install airbyte-webapp/.husky", | |||
"prestart": "npm run generate-client", | |||
"start": "craco start", | |||
"prestart:cloud": "npm run generate-client", | |||
"start:cloud": "AB_ENV=frontend-dev node -r ./scripts/environment.js ./node_modules/.bin/craco start", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow I had not yet realized what AB
signified 😅
Co-authored-by: Joey Marshment-Howell <[email protected]>
What
This adds a
start:cloud
command to the webapp. This makes it easier for employees to run the webapp in cloud mode, by simply runningnpm run start:cloud
.The existing
npm start
command will continue to work as it does today.How
The corresponding files will be checked into the (private) airbyte-cloud repository: https://github.com/airbytehq/airbyte-cloud/pull/3391
When running the command the
environment.js
file will check if the airbyte-cloud repository is checked out in parallel (thus the file exists), and if so usedotenv
to load it. This replaces the need for having any.env.development
file we need to copy around.Given that we can use different ports in those environment files (as the above linked PR already does), we can run Cloud and OSS also more easily in parallel in the future.