Skip to content
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

The blog is released, but the scully build doesn't work. #107

Open
1 of 3 tasks
mihirogi opened this issue Feb 16, 2021 · 3 comments
Open
1 of 3 tasks

The blog is released, but the scully build doesn't work. #107

mihirogi opened this issue Feb 16, 2021 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@mihirogi
Copy link
Collaborator

mihirogi commented Feb 16, 2021

  • GitHub Workflow can be run externally.
  • Webhooks to GraphCMS blog posts.
  • proxy server to run GitHub Actions from outside.

Idea:
Execute a GitHub Action when you create an article in GraphCMS.

link:
https://docs.github.com/ja/actions/managing-workflow-runs/manually-running-a-workflow
https://github.com/marketplace/actions/workflow-webhook-action

@mihirogi mihirogi added the bug Something isn't working label Feb 16, 2021
@mihirogi mihirogi added this to the bug-fix milestone Feb 16, 2021
@mihirogi
Copy link
Collaborator Author

Unable to set the body parameter in graphcms webhook.

@mihirogi
Copy link
Collaborator Author

You need a proxy server to run GitHub Actions from outside.

@mihirogi
Copy link
Collaborator Author

mihirogi commented Mar 1, 2021

memo

main.tsの app.setGlobalPrefix('api');この部分で、/apiで待ち受けていて、
app.module.tsに登録されているコントローラーがエンドポイントになっているよ

調べる
複数のfunctionを作れるか

パターン1

  1. webhookというweb-projecgtを作る
  2. その中にプロキシーを置く

/webhookでアクセスできるように、新しいプロジェクトを作る(main.tsは/webhookになっているはず)

パターン2

  1. apps/api/src/app/ nest-cliで新しいコントローラーをきる
  2. app.module.tsに登録する

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant