sudo yum install epel-release -y
sudo yum install nginx
#Ip of all docker container
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id
- Supervisor File
/etc/supervisor/conf.d/prod-scraper.conf
[program:prod-scraper]
directory=/home/nwc/app/production/news-scraper/src/
command=/home/nwc/app/production/venv/bin/uwsgi --ini /home/nwc/app/production/news-scraper/src/crawleradmin.ini
autostart=true
autorestart=true
stderr_logfile=/var/log/prod-scraper.err.log
stdout_logfile=/var/log/prod-scraper.out.log
-
Docker Link
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh sudo groupadd docker sudo usermod -aG docker $USER
use ignore-installed if you run into any problems in installations relating
Cannot uninstall ''. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
For simplicity i have used JS, and i am fully aware that
flatArray()
will give array of string, insted a array of numbers. Since js is loosely typed, it's okay to save like this. You can useflatIntigerArray()
to get array as Integer array, i am supposing that i will receive intger nested array as said.
- Please open browser (I am using Chrome)
- Press CTRL+SHIFT+J
- Paste below code to see output