Skip to content

Commit

Permalink
fix cp script with conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
im6 committed Mar 7, 2021
1 parent 8a18489 commit 5109fd0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@ Source code to generate [www.javascript.fun](https://www.javascript.fun/)

## Quick Start

### Run app in local

```sh
yarn install
yarn build # generate collect build
yarn dev
```

### Update viewmodel

```sh
yarn build
yarn collect
```

### Push to prod

```sh
yarn cp
```
7 changes: 6 additions & 1 deletion cp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ if [ ! -d "$im6_dir" ]; then
exit 1
fi

cd $im6_dir
git pull

cd ../javascript-fun

# copy
# cp dist/public/main.js "$im6_dir/assets/"
# cp dist/public/site.js "$im6_dir/assets/"
Expand All @@ -20,4 +25,4 @@ cd $im6_dir
git add .
git commit -a -m "update"
git push
exit 0
exit 0

0 comments on commit 5109fd0

Please sign in to comment.