talk
talk copied to clipboard
[CORL-2614] Add development host and cdn testing environments to Coral
What does this PR do?
Adds a host and CDN test tooling to the Coral repo so we can duplicate production similar behaviour when testing locally with full STATIC_URI, hosted in a separate web app page, while using production builds.
What changes to the GraphQL/Database Schema does this PR introduce?
None
Does this PR introduce any new environment variables or feature flags?
No
If any indexes were added, were they added to INDEXES.md?
No new indices.
How do I test this PR?
Open a terminal:
npm run start:cdn
Create a config.json under dev/host:
{
"sites": [
{
"port": 8000,
"coralURL": "http://localhost:3000",
"staticURI": "http://localhost:3001",
"stories": [
{
"id": "67be7381-6233-443f-a568-0f8e696edbc3"
}
]
}
]
}
Open another terminal:
npm run start:host
Set the following environment variables in .env file:
SIGNING_SECRET=secret
STATIC_URI=http://localhost:3001
Open a third terminal:
npm run build
npm run start
Add http://localhost:8000 to a site in Coral. (visit http://localhost:3000 to do this)
Visit http://localhost:8000 and visit the story matching the one you created in the config.json.
Use the stream and test things out.
How do we deploy this PR?
No special considerations.
Deploy Preview for gallant-galileo-14878c canceled.
| Name | Link |
|---|---|
| Latest commit | a03da99f46a787a47ee9dcd94d285b6984260250 |
| Latest deploy log | https://app.netlify.com/sites/gallant-galileo-14878c/deploys/6310f9f404f9e20009de6f87 |