|
|
@ -20,6 +20,10 @@ mysql -e "CREATE USER 'weather'@'localhost' IDENTIFIED BY 'password'"
|
|
|
|
mysql -e "GRANT ALL PRIVILEGES ON weather.* TO 'weather'@'localhost'"
|
|
|
|
mysql -e "GRANT ALL PRIVILEGES ON weather.* TO 'weather'@'localhost'"
|
|
|
|
mysql weather < /opt/weather/weather.sql
|
|
|
|
mysql weather < /opt/weather/weather.sql
|
|
|
|
````
|
|
|
|
````
|
|
|
|
|
|
|
|
Install requirements:
|
|
|
|
|
|
|
|
````
|
|
|
|
|
|
|
|
sudo -u weather pip3 install -r /opt/weather/requirements.txt
|
|
|
|
|
|
|
|
````
|
|
|
|
Configure and run:
|
|
|
|
Configure and run:
|
|
|
|
````
|
|
|
|
````
|
|
|
|
vim /opt/weather/weather.ini
|
|
|
|
vim /opt/weather/weather.ini
|
|
|
|