Skip to content

Commit

Permalink
chore: comments and name change for dyno/image
Browse files Browse the repository at this point in the history
  • Loading branch information
wgwz committed Oct 19, 2023
1 parent ea4b12e commit 5fab0db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion heroku.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ WORKDIR /home/indexer
# Copy source code
COPY . .

# Install indexer
# Install indexer and pin the version of poetry
RUN pip3 install poetry==1.6.1
RUN poetry install
# the heroku.yml 'run' directive is incompatible with poetry
# so we export to the requirements.txt format and use pip3
RUN poetry export --without-hashes --format=requirements.txt > requirements.txt
RUN pip3 install -r requirements.txt
RUN yarnpkg install
6 changes: 3 additions & 3 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build:
docker:
index-regen: heroku.Dockerfile
indexer: heroku.Dockerfile
run:
index-regen: python main.py
indexer: python main.py
release:
image: index-regen
image: indexer
command:
- PGSSLMODE=no-verify yarnpkg migrate

0 comments on commit 5fab0db

Please sign in to comment.