Skip to content

Commit

Permalink
fix docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
krankir committed Jul 14, 2023
1 parent 6423ac5 commit 07dff14
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ RUN pip install -r requirements.txt
COPY . .

RUN chmod a+x docker/*.sh
#WORKDIR src
#
#CMD gunicorn main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
env_file:
- .env-non-dev
container_name: fastapi_app
command: [ '/fastapi_app/docker/app.sh', '/fastapi_app/docker/scrap_1_hour_price.sh' ]
command: ['/fastapi_app/docker/app.sh']
ports:
- 8000:8000
restart: always
Expand Down
2 changes: 1 addition & 1 deletion docker/app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ alembic upgrade head

cd src

gunicorn main:app --workers 1 --reload --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000
gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000
2 changes: 1 addition & 1 deletion mvideo_scrap_bot/mvideo_scrap_price_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ async def delete_product(message: types.Message, state: FSMContext):
product_delete = session.get(Product, id_p)
session.delete(product_delete)
session.commit()
await state.finish()
await message.answer('Товар успешно удалён 🗑')
await state.finish()


@dp.message_handler(
Expand Down

0 comments on commit 07dff14

Please sign in to comment.