Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
5e680769
Commit
5e680769
authored
9 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
support RDS environment variables in our bin/start script
parent
59a316f9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/start
+17
-0
17 additions, 0 deletions
bin/start
with
17 additions
and
0 deletions
bin/start
+
17
−
0
View file @
5e680769
...
...
@@ -19,4 +19,21 @@ if [ "$MAILGUN_SMTP_LOGIN" ]; then
export
MB_EMAIL_SMTP_PASSWORD
=
"
$MAILGUN_SMTP_PASSWORD
"
fi
# AWS Elastic Beanstalk w/ RDS
if
[
!
-z
"
$RDS_HOSTNAME
"
]
;
then
# EEK: this is a bit fragile. if user picks a non-standard port for their db we are screwed :(
if
[
"
$RDS_PORT
"
==
"3306"
]
;
then
export
MB_DB_TYPE
=
mysql
else
export
MB_DB_TYPE
=
postgres
fi
export
MB_DB_DBNAME
=
$RDS_DB_NAME
export
MB_DB_USER
=
$RDS_USERNAME
export
MB_DB_PASS
=
$RDS_PASSWORD
export
MB_DB_HOST
=
$RDS_HOSTNAME
export
MB_DB_PORT
=
$RDS_PORT
fi
exec
java
$JAVA_OPTS
-jar
./target/uberjar/metabase.jar
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment