From eddb042815eef3488e890468bc39507a375d1081 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 2 Jul 2021 15:51:04 +0200 Subject: Initial commit --- bin/setup.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 bin/setup.php (limited to 'bin/setup.php') diff --git a/bin/setup.php b/bin/setup.php new file mode 100755 index 0000000..ade01c6 --- /dev/null +++ b/bin/setup.php @@ -0,0 +1,28 @@ +#!/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"); -- cgit v1.2.3