From ca52947203b30ba3a67ca37eebec66fe66bde085 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 10 May 2020 01:12:00 +0300 Subject: [PATCH] Updated config files --- app/config/environments.php | 29 +++++++++++++++++++++++++++++ app/init.php | 1 + app/views/console/tasks/index.phtml | 12 ++++++------ app/workers/functions.php | 21 +++++++++++---------- 4 files changed, 47 insertions(+), 16 deletions(-) create mode 100644 app/config/environments.php diff --git a/app/config/environments.php b/app/config/environments.php new file mode 100644 index 0000000000..fd9f9b77a4 --- /dev/null +++ b/app/config/environments.php @@ -0,0 +1,29 @@ + 'Node.js 14', + 'image' => 'node:14', + 'logo' => 'node.png', + ], + [ + 'name' => 'PHP 7.4', + 'image' => 'php:7.4-cli', + 'logo' => 'php.png', + ], + [ + 'name' => 'Ruby 2.7', + 'image' => 'ruby:2.7', + 'logo' => 'ruby.png', + ], + [ + 'name' => 'Dart 2.8', + 'image' => 'google/dart:2.8', + 'logo' => 'dart.png', + ], + [ + 'name' => 'Python 3.8', + 'image' => 'python:3.8', + 'logo' => 'python.png', + ], +]; \ No newline at end of file diff --git a/app/init.php b/app/init.php index 91952cc33e..d5a6247891 100644 --- a/app/init.php +++ b/app/init.php @@ -57,6 +57,7 @@ Config::load('providers', __DIR__.'/../app/config/providers.php'); Config::load('platforms', __DIR__.'/../app/config/platforms.php'); Config::load('locales', __DIR__.'/../app/config/locales.php'); Config::load('collections', __DIR__.'/../app/config/collections.php'); +Config::load('environments', __DIR__.'/../app/config/environments.php'); Config::setParam('env', $request->getServer('_APP_ENV', App::ENV_TYPE_PRODUCTION)); Config::setParam('domain', $request->getServer('HTTP_HOST', '')); diff --git a/app/views/console/tasks/index.phtml b/app/views/console/tasks/index.phtml index b6d267343f..1ca2da718a 100644 --- a/app/views/console/tasks/index.phtml +++ b/app/views/console/tasks/index.phtml @@ -45,7 +45,7 @@ - + @@ -63,9 +63,9 @@ - + None. @@ -100,7 +100,7 @@ @@ -258,8 +258,8 @@ diff --git a/app/workers/functions.php b/app/workers/functions.php index dd0554c49f..cbdefea10b 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -1,9 +1,9 @@