forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move build-uberjar to bin/build, remove redundant install commands from
package.json, and add bin/start
- Loading branch information
1 parent
3a3064a
commit fd6d628
Showing
7 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: sh -c "MB_JETTY_PORT=${PORT} MB_DB_CONNECTION_URI=${DATABASE_URL} java -jar ./target/uberjar/metabase-standalone.jar" | ||
web: ./bin/start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
[ "$PORT" ] && export MB_JETTY_PORT="$PORT" | ||
|
||
# Translate various Heroku environment variables to Metabase equivalents | ||
|
||
[ "$DATABASE_URL" ] && export MB_DB_CONNECTION_URI="$DATABASE_URL" | ||
|
||
if [ "$MAILGUN_SMTP_LOGIN" ]; then | ||
export MB_EMAIL_SMTP_HOST="$MAILGUN_SMTP_PASSWORD" | ||
export MB_EMAIL_SMTP_PORT="$MAILGUN_SMTP_PORT" | ||
export MB_EMAIL_SMTP_USERNAME="$MAILGUN_SMTP_LOGIN" | ||
export MB_EMAIL_SMTP_PASSWORD="$MAILGUN_SMTP_PASSWORD" | ||
fi | ||
|
||
exec java $JAVA_OPTS -jar ./target/uberjar/metabase-standalone.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters