Skip to content

Adding Setup Deploy Render Command#2099

Merged
dac09 merged 31 commits intoredwoodjs:mainfrom
SEANDOUGHTY:sd-add-setup-deploy-render
Apr 20, 2021
Merged

Adding Setup Deploy Render Command#2099
dac09 merged 31 commits intoredwoodjs:mainfrom
SEANDOUGHTY:sd-add-setup-deploy-render

Conversation

@SEANDOUGHTY
Copy link
Copy Markdown
Contributor

The PR adds a command to the Redwood CLI to automatically configure project for deployment to Render.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 26, 2021

📦 PR Packages

Click to Show Package Download Links

https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/create-redwood-app-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-api-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-api-server-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-auth-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-cli-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-core-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-dev-server-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-eslint-config-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-eslint-plugin-redwood-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-forms-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-internal-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-prerender-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-router-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-structure-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-testing-0.30.1-a325182.tgz
https://rw-pr-redwoodjs-com.s3.amazonaws.com/2099/redwoodjs-web-0.30.1-a325182.tgz

Install this PR by running yarn rw upgrade --pr 2099:0.30.1-a325182

@Tobbe
Copy link
Copy Markdown
Contributor

Tobbe commented Mar 26, 2021

What a great first PR Sean! Thanks 🙌

Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Copy link
Copy Markdown
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this rolling @SEANDOUGHTY 🚀

We still need to address the apiProxyPath config in redwood.toml.

I'll follow up with you directly as I know there are other deployment questions to address. This sets up the conversation perfectly.

Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
@thedavidprice thedavidprice self-assigned this Mar 26, 2021
@dac09 dac09 mentioned this pull request Apr 5, 2021
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Copy link
Copy Markdown
Contributor

@thedavidprice thedavidprice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good and so close! I have a few comments and looped in @peterp and @dac09 for discussion.

Comment thread packages/cli/src/commands/setup/deploy/deploy.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
@thedavidprice
Copy link
Copy Markdown
Contributor

thedavidprice commented Apr 7, 2021

@SEANDOUGHTY
Copy link
Copy Markdown
Contributor Author

SEANDOUGHTY commented Apr 7, 2021

Docs

@thedavidprice
Copy link
Copy Markdown
Contributor

@SEANDOUGHTY

https://redwoodjs.com/docs/deploy#render (quick start with a link to Render official docs?) Who is working on this? Do you want me to open a PR to add this documentation?

^^ Could you open a PR with bare-bones and reference here. I can tag team. Thinking this is a bare-bones quick start with link to Render.com (create account) and Render Redwood Docs.

https://redwoodjs.com/docs/cli-commands#deploy and https://redwoodjs.com/docs/cli-commands#setup need updating I'm not sure what would be on this page? Everything that they need is on my /deploy-redwood page that I am working on.

^^ Gah, I wrote the incorrect link from memory. Updated with correct anchor tags for sections. Same deal here if you want to kick off a separate PR (helpful). I can tag team to finish and merge.

@SEANDOUGHTY
Copy link
Copy Markdown
Contributor Author

Failing E2E Test: looks flaky due to network connection. I'll re-run and confirm once code review complete.

Sounds good, I read through the messages and couldn't see anything actionable with regards to the code.

Comment thread packages/cli/src/commands/setup/deploy/deploy.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/deploy.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
@thedavidprice
Copy link
Copy Markdown
Contributor

@SEANDOUGHTY I caught a couple of last issues running through the process locally. Should be easy to wrap up!

Also, I set up render on a brand for my QA project here:
https://github.com/thedavidprice/redwood-tutorial-test/tree/render-deploy-test

And I created a Web service in my Render dashboard and then connected my repo and set the branch. Do I need to also create a Static Site and Database? I had the assumption that the config would pull from my Web service on the first deploy and then automatically link and create services as needed. Maybe that is the case but having config in my branch is messing it up?

I guess I'll know more once the Render docs are live.

Comment thread packages/cli/src/commands/deploy/render.js
Comment thread packages/cli/src/commands/deploy/render.js Outdated
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js
Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
return `services:
- type: web
name: ${PROJECT_NAME}-web
- name: ${PROJECT_NAME}-web
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, I swapped the type and name to be a bit more clear to the user.

Comment thread packages/cli/src/commands/setup/deploy/deploy.js Outdated
@dac09
Copy link
Copy Markdown
Contributor

dac09 commented Apr 17, 2021

Ready for final review @SEANDOUGHTY? Looking very good!

@dac09 dac09 dismissed thedavidprice’s stale review April 17, 2021 19:27

Comments addressed!

Comment thread packages/cli/src/commands/setup/deploy/providers/render.js Outdated
Copy link
Copy Markdown
Contributor

@dac09 dac09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setup command worked beautifully!

Things to note:

@dac09 dac09 merged commit e4cfe34 into redwoodjs:main Apr 20, 2021
@thedavidprice thedavidprice added this to the next-release milestone Apr 21, 2021
dac09 added a commit to dac09/redwood that referenced this pull request Apr 21, 2021
…erve-web

* 'main' of github.com:redwoodjs/redwood: (40 commits)
  Support generating typescript cells and pages | Autodetect ts project (redwoodjs#2279)
  create-redwood-app messages: moved app start commands to end (redwoodjs#2278)
  Add import type to configuration files (redwoodjs#2214)
  Bump @reach/skip-nav from 0.13.2 to 0.15.0 (redwoodjs#2237)
  Adding Setup Deploy Render Command (redwoodjs#2099)
  Disable role linting in Routes (redwoodjs#2318)
  v0.30.1 (redwoodjs#2322)
  teardown should attempt to delete dbName table (redwoodjs#2083)
  Restore @storybook/addon-a11y (redwoodjs#2309)
  fix(auth): Implement automatic token refresh on supported providers (redwoodjs#2277)
  fix(cli): move api-server dep from api to cli (redwoodjs#2307)
  Static typing for cells (redwoodjs#2208)
  Recommended Babel package upgrades (dependabot) (redwoodjs#2255)
  v0.30.0 (redwoodjs#2301)
  upgrade Prisma v2.21.0 (redwoodjs#2273)
  Further improvements to CONTRIBUTING.md (redwoodjs#2261)
  Adds better messages for rwt link | Watcher does not exist on build failure | Only remove node_modules after a succesful framework build (redwoodjs#2269)
  Update named param types in router readme (redwoodjs#2262)
  Bump core-js from 3.6.5 to 3.10.1 (redwoodjs#2243)
  Fix: webpack optimizations for JS (redwoodjs#2235)
  ...
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.

8 participants