Skip to content

Commit 5109fd0

Browse files
committed
fix cp script with conflict
1 parent 8a18489 commit 5109fd0

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ Source code to generate [www.javascript.fun](https://www.javascript.fun/)
44

55
## Quick Start
66

7+
### Run app in local
8+
79
```sh
810
yarn install
9-
yarn build # generate collect build
11+
yarn dev
12+
```
13+
14+
### Update viewmodel
15+
16+
```sh
17+
yarn build
1018
yarn collect
1119
```
20+
21+
### Push to prod
22+
23+
```sh
24+
yarn cp
25+
```

cp.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ if [ ! -d "$im6_dir" ]; then
55
exit 1
66
fi
77

8+
cd $im6_dir
9+
git pull
10+
11+
cd ../javascript-fun
12+
813
# copy
914
# cp dist/public/main.js "$im6_dir/assets/"
1015
# cp dist/public/site.js "$im6_dir/assets/"
@@ -20,4 +25,4 @@ cd $im6_dir
2025
git add .
2126
git commit -a -m "update"
2227
git push
23-
exit 0
28+
exit 0

0 commit comments

Comments
 (0)