Join GitHub today
[QUESTION] Developing during production? #949
Hello. I couldn't find docs on the recommended setup for developing while the github-app is in production? You'd have the webhook-url in your github-app settings directed towards your deployed instance of probot, so how would you develop locally?
All I have in mind now is just creating a copy of the repo, and having 2 repos, one for prod and one for local development, and constantly copying changes over from the local dev repo to the production repo. Is this the recommended way to develop locally on a github app in production?
Hey @amilner42. Sorry nobody responded to this issue. It seems that most people will create multiple GitHub Apps for this. One for production, and one for staging/development. You should be able to develop in one repo, deploying your changes to a branch to your staging environment, or running those changes locally and development. If you want to use a single GitHub App for both staging and development, you can swap out the App's webhook URL to point to your smee.io webhook URL (for development) or your deployed app (for staging).