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/build.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ bin/run.php | 9 +++++++++ bin/setup.php | 28 ++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100755 bin/build.php create mode 100755 bin/run.php create mode 100755 bin/setup.php (limited to 'bin') diff --git a/bin/build.php b/bin/build.php new file mode 100755 index 0000000..07aa584 --- /dev/null +++ b/bin/build.php @@ -0,0 +1,48 @@ +#!/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