bumped default distro in demos, bound mariadb to all ips, added template explaination
This commit is contained in:
@ -88,18 +88,20 @@ if [[ -e /etc/os-release ]]; then
|
||||
# HSFD changes for Ubuntu 18.04
|
||||
#sudo sed -i -e "/bind-address/d" /etc/mysql/mysql.conf.d/mysqld.cnf
|
||||
##sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf
|
||||
sudo sed -i -e "s/127.0.0.1/0.0.0.0/g" /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||
sudo mysqmladmin password password
|
||||
sudo systemctl restart mariadb
|
||||
elif [[ $ID = 'fedora' ]]; then
|
||||
# fedora currently not tested nor supported
|
||||
sudo dnf install -y mariadb-server python3-mysql
|
||||
printf "[mysqld]\nbind-address = 127.0.0.1\n" | sudo tee /etc/my.cnf.d/faafo.conf
|
||||
sudo mysqmladmin password password
|
||||
sudo systemctl enable mariadb
|
||||
sudo systemctl start mariadb
|
||||
else
|
||||
echo "error: distribution $ID not supported"
|
||||
exit 1
|
||||
fi
|
||||
sudo mariadb-admin password password
|
||||
sudo mysql -uroot -ppassword mysql -e "CREATE DATABASE IF NOT EXISTS faafo; GRANT ALL PRIVILEGES ON faafo.* TO 'faafo'@'%' IDENTIFIED BY 'password';"
|
||||
URL_DATABASE='mysql://root:password@localhost/faafo'
|
||||
fi
|
||||
|
@ -57,9 +57,9 @@ yb = {{ fractal.yb }}</pre>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{{render_pagination(fractals)}}
|
||||
<!--
|
||||
<!-- requires POST request to have Content-Type: "application/vnd.api+json" header, would require Fetch API or XMLHTTPRequest etc.
|
||||
<div>
|
||||
<form action="/v1/fractal" method="POST" enctype="application/vnd.api+json">
|
||||
<form action="/v1/fractal" method="POST">
|
||||
<input type="submit" value="Create new fractals">
|
||||
</form>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user