Created
July 24, 2016 23:07
-
-
Save samklr/407c6917677653591b2ef29d28d6d384 to your computer and use it in GitHub Desktop.
Airpal setup
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
apt-get install \ | |
build-essential \ | |
git \ | |
gradle \ | |
mysql-server | |
git clone https://github.com/airbnb/airpal.git | |
cd airpal | |
./gradlew clean shadowJar | |
mysql \ | |
-uroot \ | |
-proot \ | |
-e'CREATE DATABASE `airpal` CHARACTER SET utf8 COLLATE utf8_general_ci;' |
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
http http://127.0.0.1:8082/healthcheck | |
## open browser to http://127.0.0.1:8081/app |
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
# Logging settings | |
logging: | |
loggers: | |
org.apache.shiro: INFO | |
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL. | |
level: INFO | |
# HTTP-specific options. | |
server: | |
applicationConnectors: | |
- type: http | |
port: 8081 | |
idleTimeout: 10 seconds | |
adminConnectors: | |
- type: http | |
port: 8082 | |
shiro: | |
iniConfigs: ["classpath:shiro_allow_all.ini"] | |
dataSourceFactory: | |
driverClass: com.mysql.jdbc.Driver | |
user: root | |
password: root | |
url: jdbc:mysql://127.0.0.1:3306/airpal | |
# The URL to the Presto coordinator. | |
prestoCoordinator: http://127.0.0.1:8080 |
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
java -Duser.timezone=UTC \ | |
-cp build/libs/airpal-*-all.jar \ | |
com.airbnb.airpal.AirpalApplication \ | |
db migrate reference.yml | |
java -server \ | |
-Duser.timezone=UTC \ | |
-cp build/libs/airpal-*-all.jar \ | |
com.airbnb.airpal.AirpalApplication \ | |
server reference.yml & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment