Administering - RSamokhin/selectors GitHub Wiki

Parent Bizspark Account [email protected]

9400р. на каждую подписку

Live.Password: Qsx159357!

VM.Password: Qaz12345

D2_V2 - 7GB Ram + 2Core + 100GB SSD Ubuntu Server 16.04 LTS

PORT SETUP: 22, 80, 5432

Alpha

Live.Account: [email protected]

VM.Login: developer-alpha

ADDRESS: selectors-alpha.westeurope.cloudapp.azure.com

Beta

Live.Account: [email protected]

VM.Login: developer-beta

ADDRESS: selectors-beta.westeurope.cloudapp.azure.com

Prod

Live.Account: [email protected]

VM.Login: developer-prod

ADDRESS: selectors.westeurope.cloudapp.azure.com

Seting up Script

sudo apt-get update
sudo apt-get upgrade 
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo touch /etc/apt/sources.list.d/pgdg.list
sudo bash -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |  sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.4
sudo sed -i -e 's/exit 0/#exit 0/g' /etc/rc.local 
sudo bash -c "echo 'iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000' >> /etc/rc.local"
sudo bash -c "echo 'exit 0' >> /etc/rc.local"
sudo sed -i -e "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" /etc/postgresql/9.4/main/postgresql.conf 
sudo sed -i -e 's/host/#host/g' /etc/postgresql/9.4/main/pg_hba.conf
sudo bash -c "echo 'host all all  0.0.0.0/0 md5' >> /etc/postgresql/9.4/main/pg_hba.conf"