Deployment - SelinGungor/pairwise-testing GitHub Wiki

Docker conf

FROM python:3.6
RUN git clone https://github.com/SelinGungor/pairwise-testing.git
RUN cd pairwise-testing
COPY requirements.txt /tmp
WORKDIR /tmp
RUN pip install -r requirements.txt
EXPOSE 8000
WORKDIR /pairwise-testing
CMD ["python", "manage.py", "runserver"]

Execute in the same directory
docker build -t selin .

If you see the image run it
docker run -d -p 8080:8080 selin

Digital Ocean Jenkins Nginx sudo ufw app list Nginx Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic) Nginx HTTP: This profile opens only port 80 (normal, unencrypted web traffic) Nginx HTTPS: This profile opens only port 443 (TLS/SSL encrypted traffic)

ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's//.*$//' 146.185.136.62 10.14.0.6 fe80::7080:2fff:fe16:bb58

Stop server
sudo systemctl stop nginx

Start server
sudo systemctl start nginx

Restart server
sudo systemctl restart nginx

After conf changes
sudo systemctl reload nginx