Category : heroku

The headline pretty summary it. We can create settings.py files for different environments.(development/production). But Is it possible to do the same with the requirements file ? I have the same Django project running on heroku for production, and on docker-compose container on my localhost. I read PEP-508 and the same questions about systems. Is there ..

Read more

Dockerfile FROM tiangolo/uvicorn-gunicorn:python3.7 ADD . /dash WORKDIR /dash ENV DATABASE=postgres ENV DB_NAME=xxx ENV HOST_ADDRESS=xxx ENV DB_USER=xxxx ENV DB_PASSWORD=xxx RUN chmod u+x ./entrypoint.sh ENTRYPOINT ["./entrypoint.sh"] entrypoint.sh #!/bin/bash pip install -r requirements.txt pip install requests alembic revision –autogenerate alembic upgrade head uvicorn app.server:app –reload –port $PORT docker-compose version: "3.8" services: serve: build: . ports: – "5000:5000" volumes: ..

Read more

This is my travis.yml file and this is the latest run https://travis-ci.com/github/harryyy27/allies-art-club: sudo: required language: generic services: – docker stages: – dev – prod jobs: include: – stage: dev if: NOT(branch=master) scripts: – docker build -t harryyy27/allies_art_club/frontend -f ./client/Dockerfile.dev ./client – docker build -t harryyy27/allies_art_club/backend -f ./src/Dockerfile.dev ./src – docker run -e CI=true harryyy27/allies_art_club/frontend npm ..

Read more

So really I have several problems here. This is my travis.yml file and this is the latest run https://travis-ci.com/github/harryyy27/allies-art-club: sudo: required services: – docker stages: – name: before_deploy if: branch = master – name: before_install if: branch != master – name: scripts if: branch != master before_install: – docker build -t harryyy27/allies_art_club/frontend -f ./client/Dockerfile.dev ./client ..

Read more