Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Heroku generated app.json #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea/
.idea/
composer.lock
composer.json
17 changes: 17 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "smart-kyc",
"scripts": {
},
"env": {
},
"formation": {
},
"addons": [

],
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-nodejs#v83 -a -kyc"
}
]
}
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": "*"
}
}
26 changes: 13 additions & 13 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not best practice to push the server details to git. Please remove the credentials.

public $DB_NAME = 'redis-angular-79402';


/** @var string - Email config */
Expand All @@ -18,8 +18,8 @@ class dbconfig
public $EMAIL_USERNAME = "[email protected]";
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';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all server related details.

public $REDIS_PORT = '50369';
public $REDIS_EXPIRY = '10000';

/** @var string - Tables */
Expand Down Expand Up @@ -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';
Expand All @@ -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 = "[email protected]";

public static function emailContentResetPassword($name,$link) {

return "
<!doctype html>
<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\">
Expand Down Expand Up @@ -233,7 +233,7 @@ public static function emailContentResetPassword($name,$link) {
</center>
</body>
</html>";

}
public static function emailContentUploadSuccesfull($name){

Expand Down Expand Up @@ -654,7 +654,7 @@ public static function emailContentVerificationRejected($name){
</center>
</body>
</html>";

}
public static function emailContentEmailVerification($link){

Expand Down