Skip to content

Commit 8f62b23

Browse files
authored
Merge pull request #34 from MXClyde/master
Added MySQL support
2 parents 6007e7e + 420e5f5 commit 8f62b23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/startup

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def update_vcap_services(database_endpoint):
2121
if database_endpoint:
2222
if 'postgres' in database_endpoint:
2323
vcap_services['PostgreSQL'] = [{'credentials': { 'uri': database_endpoint } }]
24+
if 'mysql' in database_endpoint:
25+
vcap_services['p.mysql'] = [{'credentials': { 'uri': database_endpoint } }]
2426
if 'sqlserver' in database_endpoint:
2527
# Without DATABASE_URL env var, cf-mendix-buildpack supports sqlserver as azure-sqldb
2628
vcap_services['azure-sqldb'] = [{'credentials': { 'jdbcUrl': database_endpoint } }]

0 commit comments

Comments
 (0)