Skip to content

Commit

Permalink
fix dockerfile and old revision
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Apr 27, 2023
1 parent 9bb683b commit f393d7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/slackbot/community_bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ RUN pip uninstall uvloop -y

COPY setup.py /app/examples/slackbot/community_bot/setup.py

RUN marvin database upgrade -y

RUN python /app/examples/slackbot/community_bot

CMD ["uvicorn", "marvin.server:app", "--host", "0.0.0.0", "--port", "4200"]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@


def upgrade() -> None:
op.drop_column("bot_config", "instructions_template")
with op.batch_alter_table("bot_config") as batch_op:
batch_op.drop_column("instructions_template")


def downgrade() -> None:
Expand Down

0 comments on commit f393d7d

Please sign in to comment.