#!/usr/bin/env php load(); // change to build dir chdir($buildDir); // create .env.production for mastodon setup exec("touch $buildDir/.env.production"); // run mastodon:setup exec("docker-compose run --rm -v $buildDir/.env.production:/opt/mastodon/.env.production web bundle exec rake mastodon:setup");