Skip to content

Commit b838ec4

Browse files
committed
adds a cleaner way to update deploy deps in requirements lockfile
1 parent 4080ebc commit b838ec4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ We use both the python and the nginx buildpacks:
155155
heroku buildpacks:set heroku/python
156156
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nginx
157157

158+
## Deployment Dependencies
159+
160+
To update the deployment dependencies, update `reuirements.txt`. To use the deps from your local env, you can run the freeze script in the root directory:
161+
162+
./freeze.sh
163+
164+
This will include any installed deps, and the deps defined in `deploy` in `extras_require`.
165+
158166
## Connect to Heroku instance
159167

160168
In order to run Celery jobs manually you can ssh into Heroku staging with:

freeze.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
#############################################################
3+
## Prepare requirements.txt lockfile for Heroku
4+
#############################################################
5+
6+
# Append the deploy extras (see setup.py)
7+
REQUIREMENTS="$(pip freeze | grep -v origin-website)
8+
.[deploy]"
9+
10+
echo "$REQUIREMENTS" > requirements.txt

0 commit comments

Comments
 (0)