GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - circleci/code2040-practice: A repository for practicing CI and CD

This repository was archived by the owner on Feb 28, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
hello
hello
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CODEOWNERS
CODEOWNERS
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
circle.yml
circle.yml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

heroku-cd

This project is an example of an application that can be continuously delivered to Heroku through a pipeline based on staging and production environments.

##Installing and running locally

  • Clone the repo
  • Run pip install -r requirements.txt (preferably inside a virtualenv) to install the dependencies
  • Run foreman start [-p port] to run the “hello” app locally
  • Run nosetests to run the unit test
  • Refer to the Heroku docs for information on deploying to Heroku from the command line

##Deployment with CircleCI First, sign up for CircleCI if you haven’t already, fork the repo, and follow it from CircleCI. There is a detailed doc in the CircleCI docs about deployment to Heroku. But the three simple steps you need to perform are:

  1. Enter your Heroku API key in the “Heroku” section of the settings for your project on CircleCI
  2. Setup an SSH key for deployment to Heroku (CircleCI makes this very easy)
  3. Configure your circle.yml file to deploy to Heroku. See circle.yml file in this project for an example (you will need to choose different app names depending on what your apps are called in Heroku).

##The Continuous Delivery Pipeline This project implements continuous delivery with a pipeline based on “staging” and “master” branches that correspond to “staging” and “prod” heroku environments respectively. Feature branches that are ready to merge can first go into staging, where they will built by CircleCI and automatically deployed to the Heroku staging environment. Once deployed to staging, any number of automated or even manual tests can be run before merging into master to push new features into production. Each merge is performed manually in this project, but the merge from staging to master, for example, could be automated.

##See Also

  • CircleCI
  • The virtualenv and virtualenvwrapper docs
  • Getting Started with Python on Heroku and Managing Multiple Environments for an App articles from the Heroku Dev Center
  • Testing Flask Applications from the Flask docs
  • The nose documentation for more information about the nose test runner
  • Continuous Deployment with Heroku from the CircleCI docs.

About

A repository for practicing CI and CD

Resources

Readme
Activity
Custom properties

Stars

9 stars

Watchers

12 watching

Forks

26 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.