Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
zxzl committed Jan 26, 2019
1 parent f0ab529 commit a821322
Show file tree
Hide file tree
Showing 5 changed files with 788 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -14,8 +14,8 @@ cache:
install:
- yarn
before_script:
- yarn build:prod
- serve -s dist &
- yarn build
- serve -s build &
script:
- cypress run --record

Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
@@ -1 +1 @@
sshpass -p $SSH_PASS rsync -avh ./dist $RSYNC_DST --delete-after
sshpass -p $SSH_PASS rsync -avh ./public $RSYNC_DST --delete-after
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -3,7 +3,9 @@
"version": "0.1.0",
"private": true,
"devDependencies": {
"eslint-config-prettier": "^3.6.0"
"cypress": "^3.1.4",
"eslint-config-prettier": "^3.6.0",
"serve": "^10.1.1"
},
"dependencies": {
"color": "^2.0.0",
Expand Down
10 changes: 10 additions & 0 deletions public/index.html
Expand Up @@ -65,5 +65,15 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script
src="https://cdn.ravenjs.com/3.19.1/raven.min.js"
crossorigin="anonymous"
></script>
<script type="text/javascript">
// Setup sentry client
Raven.config(
'https://ebc0b78fb9174edfa6e1fab5d14b85a9@sentry.io/240133',
).install();
</script>
</body>
</html>

0 comments on commit a821322

Please sign in to comment.