Skip to content

Add support for running a view-only MeshMap on Heroku.#1

Open
ampledata wants to merge 1 commit into
masterfrom
add_heroku_support
Open

Add support for running a view-only MeshMap on Heroku.#1
ampledata wants to merge 1 commit into
masterfrom
add_heroku_support

Conversation

@ampledata

Copy link
Copy Markdown

No description provided.

@EvanKrall EvanKrall left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

does anywhere else in the codebase use $GLOBALS['USER_SETTINGS']['sql_server'], sql_user, sql_passwd, sql_db, etc? If so you may also want to assign to those on lines 335-339.

@ampledata

ampledata commented Feb 1, 2020

Copy link
Copy Markdown
Author

@EvanKrall per grep -iR sql_server *, only the admin interface:

scripts/user-settings.ini-default:;You **must** at least update sql_user, sql_passwd, and sql_server to reflect *your* environment!
scripts/user-settings.ini-default:sql_server = "localhost"
scripts/wxc_functions.inc:      $GLOBALS['sql_connection'] = mysqli_connect($GLOBALS['USER_SETTINGS']['sql_server'],$GLOBALS['USER_SETTINGS']['sql_user'],$GLOBALS['USER_SETTINGS']['sql_passwd'],$GLOBALS['USER_SETTINGS']['sql_db']) or die('Could not connect to mySQL database: ' . mysqli_error($GLOBALS['connection']) . "\n");
scripts/wxc_functions.inc://    $connection = mysqli_connect($sql_server,$sql_user,$sql_passwd,$sql_db) or die('Could not connect to mySQL database: ' . mysqli_error() . "\n");
webpage/admin/status_updates.php:echo " ( " . $USER_SETTINGS['sql_server'] . " ): \n";
webpage/admin/admin.php:        echo " ( " . $USER_SETTINGS['sql_server'] . " ): \n";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants