From 16e220db309864bbf1abf48eb32704454a85e5eb Mon Sep 17 00:00:00 2001 From: alertor-1 <40003663+alertor-1@users.noreply.github.com> Date: Mon, 10 Sep 2018 11:04:28 -0700 Subject: [PATCH 1/3] Add Heroku generated app.json --- app.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 0000000..efdc34c --- /dev/null +++ b/app.json @@ -0,0 +1,17 @@ +{ + "name": "smart-kyc", + "scripts": { + }, + "env": { + }, + "formation": { + }, + "addons": [ + + ], + "buildpacks": [ + { + "url": "https://github.com/heroku/heroku-buildpack-nodejs#v83 -a -kyc" + } + ] +} From a7d253decca31b817346311443bc67408b835bd2 Mon Sep 17 00:00:00 2001 From: alertor <40003663+alertor-1@users.noreply.github.com> Date: Wed, 12 Sep 2018 19:56:48 -0700 Subject: [PATCH 2/3] Add files via upload --- composer.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..c256f63 --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "require" : { + "silex/silex": "^2.0.4", + "monolog/monolog": "^1.22", + "twig/twig": "^2.0", + "symfony/twig-bridge": "^3", + "alrik11es/cowsayphp": "^1.2", + "csanquer/pdo-service-provider": "~1.1dev" + }, + "require-dev": { + "heroku/heroku-buildpack-php": "*" + } +} From 9508bd22b8b66a08e8121a6fed7fee3eb2cb9fec Mon Sep 17 00:00:00 2001 From: alertor Date: Wed, 12 Sep 2018 21:55:02 -0700 Subject: [PATCH 3/3] make it better --- .gitignore | 4 +++- config/config.php | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 62c8935..f480e1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.idea/ \ No newline at end of file +.idea/ +composer.lock +composer.json diff --git a/config/config.php b/config/config.php index 93dc4e8..a914237 100644 --- a/config/config.php +++ b/config/config.php @@ -3,13 +3,13 @@ class dbconfig { - public static $emailBaseUrl = "http://smartkyc.ml"; + public static $emailBaseUrl = "https://kyc-intel.herokuapp.com"; /** @var string - Redis */ - public $HOST = 'localhost'; - public $USER = 'root'; - public $PASSWORD = ''; - public $DB_NAME = 'smartkyc'; + public $HOST = 'ec2-52-20-36-181.compute-1.amazonaws.com'; + public $USER = 'h'; + public $PASSWORD = 'pb4d210f5bc588b8177921b7c2467054a951758019920a0f595b5e6ce03b619cd'; + public $DB_NAME = 'redis-angular-79402'; /** @var string - Email config */ @@ -18,8 +18,8 @@ class dbconfig public $EMAIL_USERNAME = "example@smartkyc.com"; public $EMAIL_PASSWORD = "pass"; - public $REDIS_HOST = '127.0.0.1'; - public $REDIS_PORT = '6379'; + public $REDIS_HOST = 'ec2-52-20-36-181.compute-1.amazonaws.com'; + public $REDIS_PORT = '50369'; public $REDIS_EXPIRY = '10000'; /** @var string - Tables */ @@ -73,7 +73,7 @@ class dbconfig public $COL_usersImage_unique_id = 'usersImage_unique_id'; public $COL_usersImage_userRegistration_unique_id = 'usersImage_userRegistration_unique_id'; public $COL_usersImage_image = 'usersImage_image'; - + /*Table_userRegistration*/ public $COL_userRegistration_unique_id = 'userRegistration_uniqueId'; @@ -99,13 +99,13 @@ class dbconfig public $COL_order_type = 'order_type'; public $COL_order_message = 'order_message'; public $COL_order_status = 'order_status'; - + public $TOKEN = 'token'; public static $adminMail = "admin@smarktyc.com"; - + public static function emailContentResetPassword($name,$link) { - + return " @@ -233,7 +233,7 @@ public static function emailContentResetPassword($name,$link) { "; - + } public static function emailContentUploadSuccesfull($name){ @@ -654,7 +654,7 @@ public static function emailContentVerificationRejected($name){ "; - + } public static function emailContentEmailVerification($link){