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
e759f620
Unverified
Commit
e759f620
authored
6 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
Revert tree-shaking
parent
894a61c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
project.clj
+1
-15
1 addition, 15 deletions
project.clj
src/metabase/util.clj
+8
-0
8 additions, 0 deletions
src/metabase/util.clj
with
9 additions
and
15 deletions
project.clj
+
1
−
15
View file @
e759f620
...
...
@@ -121,17 +121,6 @@
"-Djava.awt.headless=true"
]
; prevent Java icon from randomly popping up in dock when running `lein ring server`
:javac-options
[
"-target"
"1.8"
,
"-source"
"1.8"
]
:uberjar-name
"metabase.jar"
:uberjar-exclusions
[
#
_
#
"\.clj(c)?$"
#
"project\.clj$"
#
"\.java$"
#
"\.md$"
#
"README\.\w{2,3}$"
#
"\.js\.map$"
#
"\.css\.map$"
#
"pom\.xml$"
#
"pom\.properties$"
#
"package\.html$"
]
:ring
{
:handler
metabase.core/app
:init
metabase.core/init!
:destroy
metabase.core/destroy
...
...
@@ -184,10 +173,7 @@
"-Dmb.api.key=test-api-key"
"-Duser.language=en"
]}
;; build the uberjar with `lein uberjar`
:uberjar
{
:aot
:all
:jvm-opts
[
"-Dclojure.compiler.elide-meta=[:doc :added :file :line]"
]
;; it seems like this only works for Metabase and not for dependencies
:omit-source
true
}
:uberjar
{
:aot
:all
}
;; generate sample dataset with `lein generate-sample-dataset`
:generate-sample-dataset
{
:dependencies
[[
faker
"0.2.2"
]]
; Fake data generator -- port of Perl/Ruby library
:source-paths
[
"sample_dataset"
]
...
...
This diff is collapsed.
Click to expand it.
src/metabase/util.clj
+
8
−
0
View file @
e759f620
...
...
@@ -23,6 +23,14 @@
;; It shows up a solid 10-15 seconds before the "Starting Metabase in STANDALONE mode" message because so many other namespaces need to get loaded
(
log/info
(
trs
"Loading Metabase..."
))
;; Log the maximum memory available to the JVM at launch time as well since it is very handy for debugging things
(
log/info
(
trs
"Maximum memory available to JVM: {0}"
(
loop
[
mem
(
.maxMemory
(
Runtime/getRuntime
))
,
[
suffix
&
more
]
[
"B"
"KB"
"MB"
"GB"
]]
(
if
(
and
(
seq
more
)
(
>=
mem
1024
))
(
recur
(
/
mem
1024.0
)
more
)
(
format
"%.1f %s"
mem
suffix
)))))
;; Set the default width for pprinting to 200 instead of 72. The default width is too narrow and wastes a lot of space
;; for pprinting huge things like expanded queries
(
intern
'clojure.pprint
'*print-right-margin*
200
)
...
...
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