-
Notifications
You must be signed in to change notification settings - Fork 0
StackV Deployment
Make sure to have installed [Wildfly](Installing Wildfly 10.0.0 on Centos 7.1), and configured [MySQL and Maria DB](Configuring MySQL and MariaDB in Centos)
-
Download Maven from here, and create a symlink between
apache-maven-**/bin/mvnand/usr/bin/mvn -
Install git through
sudo yum install git -
Clone the StackV code from GitHub using
git clone [clone url here], and update the code by entering the following.git checkout [name of updated branch] git pull -
There are a few databases and logins required for StackV deployment. First, enter
mysql -urootto enter the SQL console, and enter the followingsource [path to localhost.sql file].-
Create three databases -- login, frontend, and rainsdb -- by entering
create database [name of database]in the console. -
There are two users that need to be created with the following credentials: U/N: login_view ; P/W: loginuser U/N: front_view ; P/W: frontuser. Thus enter the following, then enter
SET PASSWORD FOR root@localhost = PASSWORD('xxxx');to create a password for root.CREATE USER 'login_view'@'localhost' IDENTIFIED BY 'loginuser'; CREATE USER 'front_view'@'localhost' IDENTIFIED BY 'frontuser'; -
Give full privileges to
login_viewandfront_viewby running the followingGRANT ALL ON login.* TO 'login_view'@'localhost'; GRANT ALL ON frontend.* TO 'front_view'@'localhost';
-
-
Move into the StackV directory and then enter
mvn -Pdeploy-nuke clean install -DskipTeststo compile Versastack if deploying for the first time.- If you are not deploying for the first time, leave out the
-Pdeploy-nuke, and make sure to clear out the/opt/wildfly/standalone/deploymentsdirectory before deploying
- If you are not deploying for the first time, leave out the
-
To deploy StackV, copy the StackV-ear over into the wildfly deployments directory
cp StackV-ear/target/StackV-ear-1.0-SNAPSHOT.ear /opt/wildfly/standalone/deployments
- Check the status of wildfly by doing
systemctl status wildfly.service - Check the server.log by doing
/opt/wildfly/standalone/log/server.log - Run
standalone.shin the/opt/wildfly/bin/directory to see other errors - If Wildfly is having trouble deploying, make sure that the privileges are for the
wildflyuser and not root. To change the privileges, run this in StackVchown -R wildfly:wildfly /opt/wildfly/*