A CLI for Project Martini using Go.
Tested with Ubuntu 20.04 LTS. As such there is a strong recommendation to use 20.04 LTS as it should create a stable, long time environment
Download CLI
apt-get install unzip wget
wget http://dewin.me/martini/martini-cli.zip
unzip martini-cli.zip -d /usr/bin
chmod +x /usr/bin/martini-cliOn Ubuntu, run first time to install prereq
martini-cli setupAfter you made the database (cli will explain you what to do, root password is "" so please change), rerun setup but not first time
martini-cli setupOnce everything is installed, try to connect (--server must be installed if you did not generate certificates)
martini-cli --server http://localhost/api connect
martini-cli tenant listPlease consider (self-signed) certificates https://www.vultr.com/docs/configure-apache-with-select-signed-tls-ssl-certificate-on-ubuntu-16-04
apt-get install -y apache2 mysql-server mysql-client php php-xml composer zip unzip php-mysqlwget https://releases.hashicorp.com/terraform/0.11.14/terraform_0.11.14_linux_amd64.zip
unzip terraform_0.11.14_linux_amd64.zip
mv terraform /usr/binwget http://dewin.me/martini/martini-cli.zip
wget http://dewin.me/martini/martini-pfwd.zip
unzip martini-cli.zip -d /usr/bin
unzip martini-pfwd.zip -d /usr/bin
chmod +x martini-*
mv martini* /usr/binmysql
mysql -u root -pSQL commands:
CREATE DATABASE martini;
CREATE USER 'martinidbo'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mypasswordthatissupersecret';
GRANT ALL ON martini.* TO 'martinidbo'@'localhost';
GRANT USAGE ON *.* TO 'martinidbo'@'localhost' WITH MAX_QUERIES_PER_HOUR 0;
FLUSH privileges;Note that starting from MySQL 8.0 native password is no longer the default and thus must be specified manually if you want to use this mode
enable rewrite mod
a2enmod rewriteenable override, open it with for example nano
nano /etc/apache2/apache2.conf<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
</Directory>with:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>restart service
/etc/init.d/apache2 restartWe welcome contributions from the community! We encourage you to create issues for Bugs & Feature Requests and submit Pull Requests for improving our documentation. For more detailed information, refer to our Contributing Guide.
If you have any questions or something is unclear, please don't hesitate to create an issue and let us know!