forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:redwoodjs/redwood into feat/make-vi…
…te-default * 'main' of github.com:redwoodjs/redwood: (23 commits) chore(deps): update dependency @clerk/clerk-react to v4.16.2 (redwoodjs#8362) chore(package size): implement `findup-sync` in `@redwoodjs/project-config` (redwoodjs#8315) Refactor GraphQL Server and CreateYoga to Support "api serve" with Fastify Server (redwoodjs#8339) chore(deps): update dependency octokit to v2.0.15 (redwoodjs#8360) fix(coherence): correct doc links, add commas to template (redwoodjs#8351) Parse as int, fix jsdoc (redwoodjs#8357) Update forms.md (redwoodjs#8352) chore: update yarn.lock chore(release): update release command for minors chore(deps): update dependency rimraf to v5.0.1 (redwoodjs#8350) chore(deps): update dependency glob to v10.2.5 (redwoodjs#8349) feat(coherence deploy): add setup deploy coherence (redwoodjs#8234) fix(deps): update dependency listr2 to v6.6.0 (redwoodjs#8347) fix(deps): update dependency react-router-dom to v6.11.2 (redwoodjs#8345) fix(deps): update prisma monorepo to v4.14.1 (redwoodjs#8346) fix(deps): update dependency webpack to v5.83.1 (redwoodjs#8348) chore(deps): update dependency dependency-cruiser to v13 (redwoodjs#8322) chore(deps): update dependency @clerk/clerk-react to v4.16.1 (redwoodjs#8324) chore(deps): update dependency @clerk/types to v3.38.0 (redwoodjs#8325) chore(deps): update dependency nx to v16.2.1 (redwoodjs#8343) ...
- Loading branch information
Showing
100 changed files
with
1,825 additions
and
1,516 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
description: Serverful deploys on GCP or AWS via Coherence's full-lifecycle environment automation | ||
--- | ||
|
||
# Deploy to Coherence | ||
|
||
[Coherence](https://www.withcoherence.com/) delivers automated environments across the full software development lifecycle, without requiring you to glue together your own mess of open source tools to get a world-class develper experience for your team. Coherence is focused on serving startups, who are doing mission-critical work. With one simple configuration, Coherence offers: | ||
|
||
- Cloud-hosted development environments, based on VSCode. Similar to Gitpod or GitHub CodeSpaces | ||
- Production-ready CI/CD running in your own GCP/AWS account, including: database migration/seeding/snapshot loading, parallelized tests, container building and docker registry management | ||
- Full-stack branch previews. Vercel/Netlify-like developer experience for arbitrary container apps, including dependencies such as CDN, redis, and database resources | ||
- Staging and production environment management in your AWS/GCP accounts. Production runs in its own cloud account (AWS) or project (GCP). Integrated secrets management across all environment types with a developer-friendly UI | ||
|
||
## Coherence Prerequisites | ||
|
||
To deploy to Coherence, your Redwood project needs to be hosted on GitHub and you must have an [AWS](https://docs.withcoherence.com/docs/overview/aws-deep-dive) or [GCP](https://docs.withcoherence.com/docs/overview/gcp-deep-dive) account. | ||
|
||
## Coherence Deploy | ||
|
||
:::caution Prerender doesn't work with Coherence yet | ||
|
||
You can see its current status and follow updates here on GitHub: https://github.com/redwoodjs/redwood/issues/8333. | ||
|
||
But if you don't use prerender, carry on! | ||
|
||
::: | ||
|
||
If you want to deploy your Redwood project on Coherence, run the setup command: | ||
|
||
``` | ||
yarn rw setup deploy coherence | ||
``` | ||
|
||
The command will inspect your Prisma config to determine if you're using a supported database (at the moment, only `postgres` or `mysql` are supported on Coherence). | ||
|
||
Then follow the [Coherence Redwood deploy docs](https://docs.withcoherence.com/docs/configuration/frameworks#redwood-js) for more information, including if you want to set up: | ||
- a redis server | ||
- database migration/seeding/snapshot loading | ||
- cron jobs or async workers | ||
- object storage using Google Cloud Storage or AWS's S3 |
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
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
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
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
16 changes: 16 additions & 0 deletions
16
packages/cli/src/commands/setup/deploy/providers/coherence.js
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export const command = 'coherence' | ||
|
||
export const description = 'Setup Coherence deploy' | ||
|
||
export function builder(yargs) { | ||
yargs.option('force', { | ||
description: 'Overwrite existing configuration', | ||
type: 'boolean', | ||
default: false, | ||
}) | ||
} | ||
|
||
export async function handler(options) { | ||
const { handler } = await import('./coherenceHandler') | ||
return handler(options) | ||
} |
Oops, something went wrong.