stagy
stagy copied to clipboard
Stagy is a tool for quick deployment of staging environments.
Stagy
Stagy is an automated tool for application deployment. It helps teams to make deployment and testing processes simple and easy to maintain.
Installation
- Create Github Application
- Create Slack Application
- Create Heroku account
Configure Github App
- 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 usehttps://<your_app_address>/webhooks/githubhttps://smee.io/for local development) - Set 'Webhook secret'
Configure Slack App
Enable incoming-webhooks it's used to send notifications to your slack channel
Configure Stagy
- Setup ENV variables, as described in
.envfile - 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
Usage
-
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