-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Henry Lee
committed
Jul 20, 2024
1 parent
364fc59
commit fc58f98
Showing
4 changed files
with
84 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
# Deployment Guide | ||
|
||
1. Login to the data team's server: | ||
1. `gcloud compute ssh --zone "asia-east1-b" "data-team" --project "pycontw-225217"` | ||
2. service: | ||
1. Run: `gcloud compute ssh --zone "asia-east1-b" "data-team" --project "pycontw-225217"` | ||
2. Services: | ||
* ETL: `/home/zhangtaiwei/pycon-etl` | ||
* btw, metabase is located here: `/mnt/disks/data-team-additional-disk/pycontw-infra-scripts/data_team/metabase_server` | ||
* Metabase is located here: `/mnt/disks/data-team-additional-disk/pycontw-infra-scripts/data_team/metabase_server` | ||
|
||
2. Pull the latest codebase to this server: `sudo git pull` | ||
|
||
3. Add Credentials (only need to do once): | ||
* Airflow: | ||
* Connections: | ||
* kktix_api: `conn_id=kktix_api`, `host` and `extra(header)` are confidential since its KKTIX's private endpoint. Please DM @GTB or data team's teammembers for these credentials. | ||
* extra: `{"Authorization": "bearer xxx"}` | ||
* klaviyo_api: `conn_id=klaviyo_api`, `host` is <https://a.klaviyo.com/api> | ||
* Variables: | ||
* KLAVIYO_KEY: Create from <https://www.klaviyo.com/account#api-keys-tab> | ||
* KLAVIYO_LIST_ID: Create from <https://www.klaviyo.com/lists> | ||
* KLAVIYO_CAMPAIGN_ID: Create from <https://www.klaviyo.com/campaigns> | ||
* kktix_events_endpoint: url path of kktix's `hosting_events`, ask @gtb for details! | ||
3. Add credentials to the `.env` file (only needs to be done once). | ||
|
||
4. Start the services: | ||
|
||
```bash | ||
# start production services | ||
# Start production services | ||
make deploy-prod | ||
|
||
# stop production services | ||
# Stop production services | ||
# make down-prod | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters