Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Agrendalath/Keyword-Finder

Repository files navigation

Keyword Finder

Codacy Badge

Never again open websites just to find if there are things you desire.

Developement configuration

First run

You can build and run development machines using following commands:

docker-compose build && docker-compose up

After this, run following script in a separate terminal emulator:

./first_run.sh

Next runs

If you want to run Keyword Finder again, you can just type:

docker-compose up

Production configuration

Deployment

If you want to run this server in production environment, while running the web container, you need to:

  1. comment out line: "DEBUG = True" in file keyword_finder/keyword_finder/settings.py,

  2. adjust "ALLOWED_HOSTS" in file keyword_finder/keyword_finder/settings.py,

  3. change "SECRET_KEY" in file keyword_finder/keyword_finder/settings.py,

  4. adjust domain in nginx.conf,

  5. change line in Dockerfile from "8000:8000" to "80:80",

  6. change passwords in Dockerfile and keyword_finder/keyword_finder/settings.py,

  7. issue following commands:

mv run_production.sh run_web.sh
docker exec -i -t keywordfinder_web_1 /bin/bash
pip install gunicorn
apt-get update && apt-get install -y nginx
cp nginx.conf /etc/nginx/sites-enabled/

Running server

Run your production server with:

docker-compose up --abort-on-container-exit --no-recreate

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published