8000 GitHub - Polyfeed-temp/backend
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Polyfeed-temp/backend

Repository files navigation

Polyfeed_Backend

Setting up

  1. Install python3.8
  2. if not installed using pyenv
  3. Install pip
  4. pip install requirements.txt

newgrp docker

Deployment

build image

Dev:
sudo docker build -t polyfeed-backend . && \
sudo docker stop polyfeed-backend || true && \
sudo docker rm polyfeed-backend || true && \
sudo docker run -d -p 8000:8000 --name polyfeed-backend --network host polyfeed-backend

Production:
sudo docker build -t polyfeed-backend-prod . && \
sudo docker stop polyfeed-backend-prod || true && \
sudo docker rm polyfeed-backend-prod || true && \
sudo docker run -d -p 8002:8002 --name polyfeed-backend-prod --network host polyfeed-backend-prod

run container

docker run -d -p 8000:8000 polyfeed-backend
docker run -d -p 8002:8002 polyfeed-backend-prod

Apache Http server config

added the follow configuration on /etc/httpd/conf/httpd.conf

<VirtualHost *:80>
    ServerName polyfeed.com.au

    DocumentRoot /var/www/html

    # Serve /static directly
    Alias /static /var/www/html/static

    # Proxy all other requests
    ProxyPreserveHost On
    # database dashboard
    ProxyPass /phpMyAdmin !
    # dashboard
    ProxyPass /dashboard !
    ProxyPass / http://localhost:8000/
    ProxyPassReverse / http://localhost:8000/

</VirtualHost>

reload the httpd

sudo systemctl restart httpd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0