If there is no secrets, just run like a normal system.
This commit is contained in:
parent
767c08abd4
commit
989056d0b9
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ class Sync
|
|||
$this->storageFilesystem = new StorageFilesystem();
|
||||
$this->localFilesystem = new LocalFilesystem();
|
||||
|
||||
if(!isset($environment['S3_API_KEY']) || !isset($environment['S3_API_SECRET'])){
|
||||
$this->logger->warning(sprintf('%s S3_API_KEY/S3_API_SECRET missing, so running in non-storing mode like a normal database.', Emoji::CHARACTER_NERD_FACE));
|
||||
sleep(60);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($this->args->hasOpt('postgres') || isset($environment['PG_VERSION'])) {
|
||||
// Postgres mode is enabled if --postgres is set, or PG_VERSION envvar is set,
|
||||
// which it is when we're built ontop of the postgres docker container
|
||||
|
|
Loading…
Reference in a new issue