Stagy is an automated tool for application deployment. It helps teams to make deployment and testing processes simple and easy to maintain.
- Create Github Application
- Create Slack Application
- Create Heroku account
- Set 'Request user authorization during installation' to
true
- Enable permissions:
- content - read
- issues - read/write
- pull requests - read/write
- email addresses - read-only
- Enable webhooks:
- pull_requests
- Set 'Webhook URL' to your app
(you can use
https://<your_app_address>/webhooks/github
https://smee.io/
for local development) - Set 'Webhook secret'
Enable incoming-webhooks
it's used to send notifications to your slack channel
- Setup ENV variables, as described in
.env
file - Install the Gems
bundle install
- Setup DB
bundle exec rake db:setup
- Run seeds
bundle exec rake db:seed_fu
- Run server
bundle exec rails s
- Run sidekiq
bundle exec sidekiq
-
Create a Project (one of the following):
- Install the Github application and allow access to at least one repository
- Manually by the 'Create new Project' button
-
Create project instance (one of the following):
- Create pull_request in the repository
- Manually by the button 'Create'
-
Deploy