[guadec-web-regcfp] Use MySQL on openshift
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp] Use MySQL on openshift
- Date: Tue, 31 Mar 2015 11:36:26 +0000 (UTC)
commit 25642bcdd146f31775e4376b4522e952e8c7caab
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Mon Mar 30 20:30:18 2015 +0200
Use MySQL on openshift
Signed-off-by: Patrick Uiterwijk <puiterwijk redhat com>
app.js | 2 +-
models/index.js | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app.js b/app.js
index d258f60..df73c80 100644
--- a/app.js
+++ b/app.js
@@ -53,7 +53,7 @@ app.use(session({
app.use(function(req, res, next) {
res.locals.session = req.session;
res.locals.config = config;
- res.locals.development = process.env.OPENSHIFT_NODEJS_IP || env == 'development';
+ res.locals.development = env == 'development';
next();
});
diff --git a/models/index.js b/models/index.js
index 8ce265d..d2e6b7e 100644
--- a/models/index.js
+++ b/models/index.js
@@ -10,11 +10,11 @@ if(!!process.env.OPENSHIFT_APP_NAME)
{
var sequelize = new Sequelize(
process.env.PGDATABASE,
- process.env.OPENSHIFT_POSTGRESQL_DB_USERNAME,
- process.env.OPENSHIFT_POSTGRESQL_DB_PASSWORD,
+ process.env.OPENSHIFT_MYSQL_DB_USERNAME,
+ process.env.OPENSHIFT_MYSQL_DB_PASSWORD,
{
- host: process.env.OPENSHIFT_POSTGRESQL_DB_HOST,
- dialect: 'postgres'
+ host: process.env.OPENSHIFT_MYSQL_DB_HOST,
+ dialect: 'mysql'
});
} else {
var sequelize = new Sequelize(config.database, config.username, config.password, config);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]