Skip to content

Commit

Permalink
Merge pull request #2 from dilippuri/master
Browse files Browse the repository at this point in the history
rebasing from original repo
  • Loading branch information
avsaditya authored Oct 9, 2019
2 parents 04219c2 + ae88947 commit 6a9cd6b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

posts = [
{
'author': 'Jane Doe',
'author': 'Dilip Puri',
'title': 'Blog Post 2',
'content': 'Second post content',
'date_posted': 'April 21, 2018'
Expand Down
17 changes: 17 additions & 0 deletions codeship-services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
web-codeship-example-python:
build: .
links:
- postgres
environment:
DATABASE_URL: "postgres://todoapp@postgres/todos"
cached: true
postgres:
image: healthcheck/postgres:alpine
environment:
POSTGRES_USER: todoapp
POSTGRES_DB: todos
codeship-heroku-deployment:
image: codeship/heroku-deployment
encrypted_env_file: deployment.env.encrypted
volumes:
- ./:/deploy
7 changes: 7 additions & 0 deletions codeship-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: tests
service: depends_on
command: python app.py test
- name: deploy
tag: master
service: codeship-heroku-deployment
command: codeship_heroku deploy /deploy python-django-todoapp

0 comments on commit 6a9cd6b

Please sign in to comment.