๋จ๋ง๊ณผ์ ํต์ ์ ์ฒ๋ฆฌํ๋ ์๋ฒ ์ํ ์ ๋๋ค.
- JDK 1.7+
- Maven 3+
- MariaDB(MySQL)
VM Instance ์์ฑ์ ๊ฐ์์๊ฐ์ ์ค๋ช ํฉ๋๋ค.
git clone์ ์ด์ฉํ์ฌ cloneํ ํ ํ๋ก์ ํธ ํด๋์์ ๋ค์์ ๋ช
๋ น์ด๋ก DB ์์ฑ, ๊ถํ ๋ถ์ฌ ๋ฐ ํ
์ด๋ธ์ ์์ฑํฉ๋๋ค.
$ mysql -uroot < ddl.sql
root ๊ณ์ ์ ๋น๋ฐ๋ฒํธ๊ฐ ๋ถ์ฌ๋์์ ๊ฒฝ์ฐ์๋ -p ์ต์ ์ ์ถ๊ฐํฉ๋๋ค.
$ mysql -uroot -p < ddl.sql
์์ฑ์ด ์๋ฃ๋ ํ ์ ์ ์ฌ๋ถ๋ฅผ ํ์ธํฉ๋๋ค. ddl.sql ํ์ผ์ ๋ช ์๋ ๊ฒ์ฒ๋ผ ๋น๋ฐ๋ฒํธ๋ 1111 ์ ๋๋ค.
$ mysql -uvalueup -p valueup_test
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 97
Server version: 5.5.41-MariaDB MariaDB Server
Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [valueup_test]>
$ mvn clean tomcat7:run
ํด๋น ์ํ์ war ํ์ผ์ $CATALINA_HOME/webapps ํด๋์ ๋ณต์ฌ ํ tomcat ์ฌ๊ธฐ๋
- war ํ์ผ ์์ฑ
$ mvn clean package
- war ํ์ผ ๋ณต์ฌ(yum์ ์ด์ฉํ์ฌ tomcat์ ์ค์นํ์์ ๊ฒฝ์ฐ)
$ sudo cp ./target/project-valueup.war /var/lib/tomcat/webapps
$ sudo service tomcat restart