diff --git a/README.md b/README.md index c7f68a19e..61105566f 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,22 @@ It has two main functions: The system was originally implemented for the collaborative manifesto project at https://openpolitics.org.uk/manifesto. The canonical instance of this app for that project is https://votebot.openpolitics.org.uk +## Development + +### Dependencies + +- [Ruby](https://www.ruby-lang.org/en/documentation/installation/) - check the required version in [Gemfile](./Gemfile) +- Others tbc + +### Create and setup the database + +Run the following commands to create and setup the database. + +``` +bundle exec rake db:create +bundle exec rake db:setup +``` + ## Usage ... to be written ... diff --git a/config/initializers/octokit.rb b/config/initializers/octokit.rb index 52e1582a8..57f89b0ee 100644 --- a/config/initializers/octokit.rb +++ b/config/initializers/octokit.rb @@ -13,7 +13,7 @@ def create_label_if_missing(label:, colour:, description:) Octokit.add_label(ENV.fetch("GITHUB_REPO"), label, colour, description: description) end -unless Rails.env.test? +unless Rails.env.test? || Rails.env.development? # Configure GitHub webhook automatically begin webhook_url = "#{ENV.fetch("SITE_URL")}/webhook"