Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
Update travis script to trigger the backend deployment (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piumal1999 authored May 20, 2021
1 parent 07519ef commit deb516b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ cache:
- node_modules
script:
- npm run build
- npm run lint
- npm run lint
after_script:
- |
if [[ ($TRAVIS_BRANCH == $FRONTEND_DEPLOY_BRANCH ) && ($TRAVIS_PULL_REQUEST == false) ]]; then
curl -LO --retry 3 https://raw.githubusercontent.com/plume-lib/trigger-travis/master/trigger-travis.sh
sh trigger-travis.sh --branch $BACKEND_DEPLOY_BRANCH $BACKEND_GITHUB_ID $BACKEND_REPO_ID $TRAVIS_ACCESS_TOKEN
else
echo "Backend deployment did not run"
fi
6 changes: 3 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const API_URL = 'http://localhost:8080/api';
export const AUTH_URL = 'http://localhost:8080/login';
export const LOGOUT_URL = 'http://localhost:8080/logout';
export const API_URL = '/api';
export const AUTH_URL = '/login';
export const LOGOUT_URL = '/logout';

0 comments on commit deb516b

Please sign in to comment.