Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
cc078be
added config for actian agreement
ajefts May 7, 2018
9eeb14f
send info to segment
ajefts May 25, 2018
816fffb
fixed segment identify
ajefts May 25, 2018
e509bbb
Added NDA terms handler for Eaton
Oct 4, 2018
e124309
added redirect to new learn page
ajefts Oct 12, 2018
66c4196
added redirect to new learn page
ajefts Oct 12, 2018
0f24f16
updated payment methods URL
ajefts Dec 17, 2018
34b1ffb
formatting update
ajefts Dec 17, 2018
bfc2f22
make copyright year dynamic
skyhit Dec 18, 2018
a4bd6a8
Merge branch 'dev' of https://github.com/topcoder-platform/tc-website…
skyhit Dec 18, 2018
43d0b7a
added hardcoded exclusion for cmap
ajefts Dec 21, 2018
87b7e24
updated comments
ajefts Dec 21, 2018
dbf2e57
Updated payment help link
ajefts Jan 15, 2019
1f4e848
Updated payment help links
ajefts Jan 15, 2019
d6e79bd
Updated to use TLS v1.2
coderReview Jan 16, 2019
708e449
Remove the DR points update query on source db
Jan 17, 2019
345f327
Removed DR points insertion in Source db
Jan 18, 2019
34dbe2b
Merge pull request #22 from topcoder-platform/data_loader_dr_query_fix
RiteshTC Feb 25, 2019
cf74f77
Code Ratings Added
Feb 25, 2019
bd60fb2
Update RatingQubits.xml for Code Ratings
Mar 18, 2019
861b4ea
Merge pull request #23 from topcoder-platform/feature/add_code_ratings
RiteshTC Mar 18, 2019
744d86a
Redirecting to new user settings page
ajefts Apr 1, 2019
a7c341c
added redirect
dmessing May 20, 2019
b72f259
Merge pull request #26 from topcoder-platform/hotfix/redirect-status
ajefts May 21, 2019
3c3b98a
load project groups to DW
gondzo Jun 25, 2019
1678f4f
Update TCLoadTCS.java
gondzo Jun 26, 2019
7257377
Merge pull request #28 from gondzo/feature/load-project-groups
RishiRajSahu Jul 4, 2019
5d393c0
load private projects into DW
gondzo Aug 26, 2019
4ba50e4
Merge branch 'feature/load-project-groups' of https://github.com/gond…
gondzo Aug 26, 2019
5c84db9
Update TCLoadTCS.java
gondzo Aug 29, 2019
0781496
Merge pull request #29 from gondzo/feature/load-project-groups
RishiRajSahu Sep 6, 2019
2a4194e
update query
gondzo Sep 9, 2019
6c81c39
Merge branch 'feature/load-project-groups' of https://github.com/gond…
gondzo Sep 9, 2019
f0591da
Merge pull request #30 from gondzo/feature/load-project-groups
RishiRajSahu Sep 10, 2019
d951a00
Added marathon matches to be loaded to DW. Added logs.
RishiRajSahu Oct 24, 2019
7058e62
Updated copyright in footer.
ajefts Oct 28, 2019
b22d3f0
add loading of private projects data for project result, design proje…
gondzo Apr 4, 2020
da281e9
handle table deletion and update logging
gondzo Apr 6, 2020
e5568dd
Merge pull request #31 from gondzo/feature/privateTables
RishiRajSahu Apr 6, 2020
5d867d2
fix build issue
gondzo Apr 6, 2020
a272ba1
Merge pull request #33 from gondzo/feature/privateTables
RishiRajSahu Apr 6, 2020
9a48ca7
add option for full load of private tables
gondzo Apr 8, 2020
9dbe8fc
add batch data loading for private tables
gondzo Apr 9, 2020
082d0a1
add batch size parameter
gondzo Apr 10, 2020
9399c73
Merge pull request #34 from gondzo/feature/privateTables
RishiRajSahu Apr 11, 2020
63e2dfa
Correct query for full load.
RishiRajSahu Apr 11, 2020
6585648
use user rating create date for select query
gondzo Apr 13, 2020
9e4e3cc
update project selection query for private project design results
gondzo Apr 14, 2020
1035cad
update loading
gondzo Apr 15, 2020
92dc607
disable skipping deleting projects for full load
gondzo Apr 16, 2020
782ad90
Merge pull request #36 from gondzo/feature/privateTables
RishiRajSahu Apr 16, 2020
b270f32
revert user rating changes
gondzo May 4, 2020
f87bf5a
Merge pull request #38 from gondzo/feature/privateTables
RishiRajSahu May 6, 2020
33c991c
Made default value for full load equal to false and respective code u…
RishiRajSahu May 11, 2020
47fa3f9
removed delete for private_user_rating as this table will no more be …
RishiRajSahu May 12, 2020
b3e7b65
Merge pull request #32 from topcoder-platform/feature/private_tables
RishiRajSahu May 12, 2020
f361ac9
Corrected error in sql syntax
RishiRajSahu May 13, 2020
0a18eb2
Rename mediaRequestForm.jsp to mediaRequestForm.jsp.20200807
ajefts Aug 7, 2020
e386c95
Updating segment.io script
ajefts Aug 21, 2020
214d007
changing logout url for new auth flow
Oct 7, 2020
faecaf7
Merge pull request #42 from topcoder-platform/feature/Auth0-RS256-Token
Oct 8, 2020
bee14e2
Commented out old member search form.
ajefts Dec 14, 2020
23cb829
added status reason
ajefts May 13, 2021
0c22a2c
Merge pull request #44 from topcoder-platform/status_reason
ajefts May 13, 2021
efcc732
fixing status reason ID
ajefts May 17, 2021
6c117cc
Merge pull request #45 from topcoder-platform/status_reason
ajefts May 17, 2021
1800c0e
fixed array
ajefts May 17, 2021
bff6dd0
Merge pull request #46 from topcoder-platform/status_reason
ajefts May 17, 2021
c2d9d9e
Add constants for v5 payment types
ajefts May 20, 2021
9a5e72a
return reference ID for v5 task payment types.
ajefts May 20, 2021
62c5305
return jiraIssueName as the default if it can't find another referenc…
ajefts May 20, 2021
c3e0d81
Revert "return jiraIssueName as the default if it can't find another …
ajefts May 20, 2021
62bccee
Revert "return reference ID for v5 task payment types."
ajefts May 20, 2021
513a441
Revert "Add constants for v5 payment types"
ajefts May 20, 2021
b676489
add column for v5 ID in listing
ajefts May 20, 2021
476cbe3
Merge pull request #47 from topcoder-platform/v5-payment-support
ajefts May 20, 2021
4fa641f
circle ci build automation
Gunasekar-K May 27, 2021
ccf1dac
integrating deploy script
Gunasekar-K May 31, 2021
98612dc
integrating deploy script
Gunasekar-K May 31, 2021
6fb9079
integrating deploy script
Gunasekar-K May 31, 2021
a0d50df
integrating deploy script
Gunasekar-K May 31, 2021
5fbace0
integrating deploy script
Gunasekar-K Jun 1, 2021
4b86b51
integrating deploy script
Gunasekar-K Jun 1, 2021
0bed12c
lib file integration
Gunasekar-K Jun 9, 2021
9e235b6
lib file integration
Gunasekar-K Jun 9, 2021
3ffdf90
deployment testing
Gunasekar-K Jun 11, 2021
d5cd0d6
updating dependecy branch
Gunasekar-K Jun 15, 2021
c10ccfe
updating dependecy branch
Gunasekar-K Jun 16, 2021
5bd9ead
updating dependecy branch
Gunasekar-K Jun 16, 2021
dd8c193
Update PactsServicesBean.java
ajefts Jun 21, 2021
9778941
Merge pull request #48 from topcoder-platform/v5-payment-jira-id-patch
ajefts Jun 21, 2021
a46b4c2
set Jira ID for v5
ajefts Jun 21, 2021
962bcce
Merge pull request #49 from topcoder-platform/v5-payment-jira-id-patch
ajefts Jun 21, 2021
ad57dc8
default set jira Id during create payment
ajefts Jun 22, 2021
2dc964c
Merge pull request #50 from topcoder-platform/v5-payment-jira-id-patch
ajefts Jun 22, 2021
517fa46
fix class casting issue
ajefts Jun 22, 2021
0ca9fb3
Merge pull request #51 from topcoder-platform/v5-payment-jira-id-patch
ajefts Jun 22, 2021
43ee49f
Update PaymentHistory.jsp
coderReview Sep 22, 2021
ee5ebc9
Update PaymentStatusSummary.jsp
coderReview Sep 22, 2021
3f55165
Merge pull request #52 from topcoder-platform/community-app-5707
Gunasekar-K Sep 22, 2021
cc52c7f
custom image created for build
Gunasekar-K Sep 22, 2021
adff50c
Update PaymentHistory.jsp
coderReview Sep 24, 2021
e769c86
Merge pull request #53 from topcoder-platform/community-app-5707
Gunasekar-K Sep 24, 2021
33e6eff
Revert "Update PaymentHistory.jsp"
Gunasekar-K Sep 24, 2021
dd871a2
Merge pull request #54 from topcoder-platform/revert-53-community-app…
Gunasekar-K Sep 24, 2021
f5bae12
improvement(reskin-payment): no payment page
dedywahyudi Jun 28, 2022
58defa6
improvement(reskin-payment): add meta viewport
dedywahyudi Jun 28, 2022
a576099
improvement(reskin-payment): payment summary
dedywahyudi Jun 29, 2022
db89038
improvement(reskin-payment): view all, view pending
dedywahyudi Jun 29, 2022
52daba3
ci: set dev to reskin-payment
dedywahyudi Jul 1, 2022
eb99beb
auth error fixes
dedywahyudi Jul 13, 2022
8d94009
reskin-payment: topcoder link on dev & prod env
dedywahyudi Jul 20, 2022
48d69d6
reskin-payment: number on pending tab
dedywahyudi Jul 20, 2022
c8e92de
reskin-payment: not found icon mobile
dedywahyudi Jul 20, 2022
99afd11
reskin-payment: back button to challenges
dedywahyudi Jul 21, 2022
e12dee0
fix: pagination after click checkbox
dedywahyudi Aug 4, 2022
9a41a36
fix: pending count differences
dedywahyudi Aug 4, 2022
882a6f0
fix: display 100 items
dedywahyudi Aug 4, 2022
825b573
fix: pay me button disabled
dedywahyudi Aug 5, 2022
5f4460d
fix: after sort pagination missing
dedywahyudi Aug 11, 2022
c26ee99
fix: view pending count tab
dedywahyudi Aug 15, 2022
6318121
fix: less than $25 message
dedywahyudi Aug 21, 2022
cccc5b8
Merge pull request #57 from topcoder-platform/reskin-payment
Gunasekar-K Aug 23, 2022
56e121c
Merge pull request #59 from topcoder-platform/master
Gunasekar-K Aug 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
version: 2
defaults: &defaults
docker:
- image: appiriodevops/openjdk7:buildv1

install_dependency: &install_dependency
name: Installation of build dependencies.
command: |
sed -i '/jessie-updates/d' /etc/apt/sources.list
apt update
apt install -y openssl ant git zip jq
mkdir ~/awscli
cd ~/awscli
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
cd /usr/share/ant/lib
wget https://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/1.7.8/groovy-all-1.7.8.jar
wget https://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
cd ~
wget http://downloads.sourceforge.net/project/jboss/JBoss/JBoss-4.2.3.GA/jboss-4.2.3.GA-jdk6.zip
unzip jboss-4.2.3.GA-jdk6.zip
cd project
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
install_dependentrepo: &install_dependentrepo
name: Installation of install_deploysuite.
command: |
git clone --branch $GLUE_BRANCH https://github.com/topcoder-platform/tc-website-glue ../glue
git clone --branch $TCSHARED_BRANCH https://github.com/topcoder-platform/tc-website-shared ../shared
git clone --branch $TCEA_BRANCH https://github.com/topcoder-platform/tc-website-external-artifacts ../external-artifacts
git clone --branch $TCCACHE_BRANCH https://github.com/appirio-tech/tc-cache ../tc-cache
build_steps: &build_steps
# Initialization.
# - run: *install_dependency
- checkout
- run: *install_deploysuite
- run: *install_dependentrepo
- run:
name: "AWS Configuration"
command: |
./awsconfiguration.sh $BUILD_ENV
source awsenvconf
- run:
name: Building application
command: |
source awsenvconf
ant -f move.xml package-topcoder
zip -r lib.zip lib
zip -r resources.zip resources
cd ../tc-cache && ant && cp build/dist/lib/tcs/tc_cache/1.0.0/tc_cache.jar ../project/ && cd ../project
# - store_artifacts:
# path: ./topcoder.jar
# destination: topcoder.jar
# - store_artifacts:
# path: ./tc_cache.jar
# destination: tc_cache.jar
- run:
name: Build Pacakge
command: ./build-package.sh $BUILD_ENV
- run:
name: "Deployment tc-website app"
command: |
source awsenvconf
echo $VER
# cp -f buildvar-app.conf buildvar.conf
./deploy.sh $BUILD_ENV $VER


jobs:
# Build & Deploy against development backend
"build-dev":
<<: *defaults
environment:
BUILD_ENV: "DEV"
GLUE_BRANCH: "dev"
TCSHARED_BRANCH: "dev"
TCEA_BRANCH: "dev"
TCCACHE_BRANCH: "master"
steps: *build_steps

"build-prod":
<<: *defaults
environment:
BUILD_ENV: "PROD"
GLUE_BRANCH: "master"
TCSHARED_BRANCH: "master"
TCEA_BRANCH: "master"
TCCACHE_BRANCH: "master"
steps: *build_steps

workflows:
version: 2
build:
jobs:
- Hold [TC-Website-Build-Deploy]:
type: approval
- build-dev:
context : org-global
requires:
- Hold [TC-Website-Build-Deploy]
filters:
branches:
only: [dev, reskin-payment]
- build-prod:
context : org-global
requires:
- Hold [TC-Website-Build-Deploy]
filters:
branches:
only: master
42 changes: 42 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 0.0
os: linux
files:
- source: ./topcoder.jar
destination: /home/web/web_backup/
# - source: ./tc_cache.jar
# destination: /home/web/web_backup/
# - source: ./lib.zip
# destination: /home/web/web_backup/
# - source: ./resources.zip
# destination: /home/web/web_backup/
permissions:
- object: /home/web/web_backup
pattern: "topcoder.jar"
owner: web
group: apps
# - object: /home/web/web_backup
# pattern: "tc_cache.jar"
# owner: web
# group: apps
# - object: /home/web/web_backup
# pattern: "lib.zip"
# owner: web
# group: apps
# - object: /home/web/web_backup
# pattern: "resources.zip"
# owner: web
# group: apps
hooks:
BeforeInstall:
- location: remote-cmd-backup-app.sh
runas: web
AfterInstall:
- location: remote-cmd-expand-app.sh
runas: web
- location: remote-cmd-stop-server.sh
runas: web
- location: remote-cmd-deploy-app.sh
runas: web
ApplicationStart:
- location: remote-cmd-start-server.sh
runas: web
29 changes: 29 additions & 0 deletions build-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#Preparing paackage
ENV=$1
if [ -z $ENV ];
then
echo "The script need to be executed with version ex:build-package.sh ENV"
exit 1
fi

VER=`date "+%Y%m%d%H%M"`
SCRIPTDIR="./deployscripts"

BUILD_VARIABLE_FILE_NAME="./buildvar.conf"
source $BUILD_VARIABLE_FILE_NAME
AWS_CD_PACKAGE_NAME="${APPNAME}-${PACKAGETYPE}-${VER}.zip"
PACAKAGE_LOCATION="dist-${PACKAGETYPE}"
rm -rf $PACAKAGE_LOCATION
mkdir $PACAKAGE_LOCATION
cp -rvf $SCRIPTDIR/* $PACAKAGE_LOCATION/
cp lib.zip lib $PACAKAGE_LOCATION/
cp resources.zip $PACAKAGE_LOCATION/
cp topcoder.jar $PACAKAGE_LOCATION/
cp tc_cache.jar $PACAKAGE_LOCATION/
cp appspec.yml $PACAKAGE_LOCATION/appspec.yml
zip -j $AWS_CD_PACKAGE_NAME $PACAKAGE_LOCATION/*


VER1=$VER
echo export VER="$VER1" >> "$BASH_ENV"
15 changes: 15 additions & 0 deletions buildvar.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
APPNAME="tc-website"
PACKAGETYPE="app"
DEPLOY=1
DEV_AWS_REGION="us-east-1"
DEV_AWS_CD_APPNAME="tc-website-app"
DEV_AWS_CD_DG_NAME="tc-website-app"
DEV_AWS_CD_DG_CONFIGURATION="CodeDeployDefault.AllAtOnce"
DEV_AWS_S3_BUCKET="tc-website-app-dev"
DEV_AWS_S3_KEY_LOCATION=""
PROD_AWS_REGION="us-east-1"
PROD_AWS_CD_APPNAME="tc-website-app"
PROD_AWS_CD_DG_NAME="tc-website-app"
PROD_AWS_CD_DG_CONFIGURATION="CodeDeployDefault.AllAtOnce"
PROD_AWS_S3_BUCKET="tc-website-app-prod"
PROD_AWS_S3_KEY_LOCATION=""
14 changes: 0 additions & 14 deletions circle.yml

This file was deleted.

4 changes: 3 additions & 1 deletion conf/loadtcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<classname>com.topcoder.utilities.dwload.TCLoadTCS</classname>
<parameterList>
<parameter name="submission_dir" value="file:/tcssubmissions/"/>
<parameter name="full_load" value="false"/>
<parameter name="batch_size_days" value="15"/>
</parameterList>
</load>
</loadDefinition>
</loadDefinition>
125 changes: 125 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
#!/bin/bash

ENV=$1
APPVER=$2

if [ -z $APPVER ] || [ -z $ENV ];
then
echo "The script need to be executed with version ex:deploy.sh ENV 123"
exit 1
fi

JQ="jq --raw-output --exit-status"
COUNTER_LIMIT=20

BUILD_VARIABLE_FILE_NAME="./buildvar.conf"
source $BUILD_VARIABLE_FILE_NAME

AWS_CD_APPNAME=$(eval "echo \$${ENV}_AWS_CD_APPNAME")
AWS_CD_DG_NAME=$(eval "echo \$${ENV}_AWS_CD_DG_NAME")
AWS_CD_DG_CONFIGURATION=$(eval "echo \$${ENV}_AWS_CD_DG_CONFIGURATION")
AWS_S3_BUCKET=$(eval "echo \$${ENV}_AWS_S3_BUCKET")
AWS_S3_KEY_LOCATION=$(eval "echo \$${ENV}_AWS_S3_KEY_LOCATION")

AWS_CD_PACKAGE_NAME="${APPNAME}-${PACKAGETYPE}-${APPVER}.zip"
if [ "$AWS_S3_KEY_LOCATION" = "" ] ;
then
AWS_S3_KEY="${AWS_CD_PACKAGE_NAME}"
else
AWS_S3_KEY="$AWS_S3_KEY_LOCATION/${AWS_CD_PACKAGE_NAME}"
fi
DEPLOYID=""
#log Function - Used to provide information of execution information with date and time
log()
{
echo "`date +'%D %T'` : $1"
}

#track_error function validates whether the application execute without any error
track_error()
{
if [ $1 != "0" ]; then
log "$2 exited with error code $1"
log "completed execution IN ERROR at `date`"
exit $1
fi

}

#uploading to S3 bucket
upload_cd_pakcage()
{
S3_URL=""
if [ "$AWS_S3_KEY_LOCATION" = "" ] ;
then
S3_URL="s3://${AWS_S3_BUCKET}/"
else
S3_URL="s3://${AWS_S3_BUCKET}/${AWS_S3_KEY_LOCATION}/"
fi
aws s3 cp ${AWS_CD_PACKAGE_NAME} $S3_URL
track_error $? "Package S3 deployment"
log "CD Package uploaded successfully to S3 bucket $S3_URL"
}
#register the revision in Code deploy
update_cd_app_revision()
{
aws deploy register-application-revision --application-name "${AWS_CD_APPNAME}" --s3-location "bucket=${AWS_S3_BUCKET},bundleType=zip,key=${AWS_S3_KEY}"
track_error $? "CD applicaton register"
log "CD application register completed successfully"
}
#Invoke the code deploy
cd_deploy()
{
RESULT=`aws deploy create-deployment --application-name "${AWS_CD_APPNAME}" --deployment-config-name "${AWS_CD_DG_CONFIGURATION}" --deployment-group-name "${AWS_CD_DG_NAME}" --s3-location "bucket=${AWS_S3_BUCKET},bundleType=zip,key=${AWS_S3_KEY}"`
track_error $? "CD applicaton deployment intiation"
DEPLOYID=`echo $RESULT | $JQ .deploymentId`
log "CD application deployment initiation completed successfully. Please find the $DEPLOYID"
}
#Checing the status
cd_deploy_status()
{
echo "check tatusget info aws deploy get-deployment --deployment-id $DEPLOYID"
counter=0
BUFFER=0
DEPLOYMENT_STATUS=`aws deploy get-deployment --deployment-id "$DEPLOYID" | $JQ .deploymentInfo.status`
if [ "$DEPLOYMENT_STATUS" = "Succeeded" ] || [ "$DEPLOYMENT_STATUS" = "Failed" ];
then
BUFFER=1
fi
while [ "$BUFFER" = "0" ]
do
echo "Current Deployment status : $DEPLOYMENT_STATUS"
echo "Waiting for 15 sec to check the Deployment status...."
sleep 15
DEPLOYMENT_STATUS=`aws deploy get-deployment --deployment-id "$DEPLOYID" | $JQ .deploymentInfo.status`
if [ "$DEPLOYMENT_STATUS" = "Succeeded" ] || [ "$DEPLOYMENT_STATUS" = "Failed" ];
then
BUFFER=1
fi
counter=`expr $counter + 1`
if [[ $counter -gt $COUNTER_LIMIT ]] ; then
echo "Deployment does not reach staedy state with in 600 seconds. Please check"
exit 1
fi
done
if [[ "$DEPLOYMENT_STATUS" = "Succeeded" ]] ;
then
echo "Deployment status is $DEPLOYMENT_STATUS"
else
echo "Deployment Failed. Please caheck AWS Code Deploy event logs"
exit 1
fi

}
# configure_aws_cli
upload_cd_pakcage
update_cd_app_revision
if [ "$DEPLOY" = "1" ] ;
then
echo "Proceeding deployment"
else
echo "User skipped deployment by updating the DEPLOY variable other than 1"
exit 0
fi
cd_deploy
cd_deploy_status
24 changes: 24 additions & 0 deletions deployscripts/remote-cmd-backup-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

BACKUP_DIR=/home/web/web_backup
TARGET_JAR=${BACKUP_DIR}/topcoder.jar
BACKUP_JAR=${TARGET_JAR}.bak
# TARGET_JAR1=${BACKUP_DIR}/tc_cache.jar
# BACKUP_JAR1=${TARGET_JAR1}.bak

# app
echo [Taking backup of existing topcoder.jar]
if [ -e $BACKUP_JAR ]; then
rm -rf $BACKUP_JAR
fi
if [ -e $TARGET_JAR ]; then
mv $TARGET_JAR $BACKUP_JAR
fi

# echo [Taking backup of existing tc_cache.jar]
# if [ -e $BACKUP_JAR1 ]; then
# rm -rf $BACKUP_JAR1
# fi
# if [ -e $TARGET_JAR1 ]; then
# mv $TARGET_JAR1 $BACKUP_JAR1
# fi
10 changes: 10 additions & 0 deletions deployscripts/remote-cmd-deploy-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

source ~/.bash_profile

pushd /home/web/web

echo "Deploying tc-website"
ant -f build_tc.xml expand

popd
Loading