14 lines
497 B
Bash
14 lines
497 B
Bash
#!/bin/sh
|
|
|
|
# Starts a dev console to compile and run lichess.
|
|
# To edit this file, copy it to bin/dev: it's not indexed by Git.
|
|
# cp bin/dev.default bin/dev
|
|
# chmod +x bin/dev
|
|
# ./bin/dev
|
|
|
|
# Yes it needs tons of memory. Go for 2048M if you have them.
|
|
export JAVA_OPTS="-Xms1536M -Xmx1536M -XX:ReservedCodeCacheSize=64m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+ExitOnOutOfMemoryError -Dkamon.auto-start=true"
|
|
|
|
# Hide pesky reboot exceptions
|
|
sbt -Dhttp.port=9663 "$@" 2> /dev/null
|