Skip to content

contredanse/mfts-server

Repository files navigation

contredanse/mfts-server

PHP 7.2+ Build Status Coverage Scrutinizer Code Quality PHPStan

Backend server for materforthespine application.

Material for the spine

Installation

env file

cp .env.example .env

Deploy

See ./deploy.php file.

$ ./vendor/bin/dep deploy production

It assumes you have a 'deployer' user set up (see here)

Create deploy user

$ sudo adduser deployer
$ sudo usermod -aG www-data deployer
$ sudo chfn -o umask=022 deployer
$ sudo chown deployer:www-data /var/www/www.domain.org
$ sudo chmod g+s /var/www/html /var/www/www.domain.org

Create a key

$ su - deployer
$ ssh-keygen -t rsa -b 4096
$ cat ~/.ssh/id_rsa.pub

Conversions

Generate video covers

$ php ./bin/console.php make:covers /web/www/mfts/src/data/xml/paxton.xml

Convert videos (webm/mp4)

$ php ./bin/console.php convert:videos /web/www/mfts/src/data/xml/paxton.xml