-
Notifications
You must be signed in to change notification settings - Fork 0
Server installation
Steps for deploying source code to a server with maven script.
-
VPN to GW server:
GW vpn server
-
connect to the GW server (ex.: GW test server)
Open your terminal and type the following
ssh <user_name>@server
ssh <user_name>@<server>
you'll be prompted for your username and password, enter them.
-
(if you are a new user do this step else skip to next).
Clone the git repository:
git clone https://github.com/GW-HIVE/glygen-frontend.git
-
Move to folder "\glygen-frontend"
cd glygen-frontend
-
Change to the GitHub branch you wish to update on the server. git checkout <branch_name>
git checkout ver_1.0
-
Check whether it's switched to the desired branch
git branch
The current working branch will be displayed with a "*" before it.
7fece56 master ver1-simplifyed-search * ver_1.0
-
update this repository, pull the latest GitHub changes
git pull origin ver_??
you'll be prompted for your GitHub username and password, enter them.
-
Now move to folder "\Front-End"
cd Front-End
-
Deploying code by running maven script
- For Test server:
mvn -Ptest compile
- For Beta server:
mvn -Pbeta compile
- For Production server:
mvn -Pprod compile
You'll receive a long message, with last part stating "BUILD SUCCESS". If this is not the message, please contact your supervisor or Rene.
- For Test server:
-
Exit the server
exit
That's it, you are done.
-
During Development phase: Production and Beta have the code from the last version branch. Test has the code from the master.
-
During Test phase: Production has the code from the last version branch. Test and Beta have the code from the master.
-
Release: A new branch is created. Production and Beta get the code from the branch. Test remains master.