This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +12
-52
lines changed Expand file tree Collapse file tree 8 files changed +12
-52
lines changed Original file line number Diff line number Diff line change 22SERVE_PORT = 3000
33// google analysis
44NEXT_PUBLIC_GA_TRACING_ID = UA-39874160-3
5- // sentry
6- NEXT_PUBLIC_SENTRY_TOKEN = https://c3736f9e69124719b594e8a746815a26@sentry.io/1260565
75// github
86NEXT_PUBLIC_GITHUB_CLIENT_ID = 3b4281c5e54ffd801f85
97
Original file line number Diff line number Diff line change 1+ // .env
2+ SERVE_PORT = 8002
3+ // google analysis
4+ NEXT_PUBLIC_GA_TRACING_ID = UA-39874160-3
5+ // github
6+ NEXT_PUBLIC_GITHUB_CLIENT_ID = 3b4281c5e54ffd801f85
7+
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ tsconfig.tsbuildinfo
1212* .md
1313* .ico
1414* .hbs
15- * .css
15+ * .css
16+ . /deploy *
Original file line number Diff line number Diff line change 11{
22 "hooks": {
3- "pre-commit": "pretty-quick --staged && npm run lint:staged",
43 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
54 }
65}
Original file line number Diff line number Diff line change @@ -3,14 +3,8 @@ FROM node:12.3.1
33RUN mkdir /root/web
44
55ADD web.tar.gz /root/web
6- RUN npm install -g pm2 --registry=https://registry.npm.taobao.org
7- RUN cd /root/web/ && npm install --registry=https://registry.npm.taobao.org --production
8- RUN cd /root/web/ && npm i terser@3.14
9-
10- RUN mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x ~/bin/jq
11- RUN export PATH=$PATH:~/bin
12- RUN jq --version
13-
6+ RUN npm install -g pm2
7+ RUN cd /root/web/ && npm install--production
148RUN cd /root/web/ && make build.prod
159
1610ADD loader.sh /usr/local/bin/loader.sh
Original file line number Diff line number Diff line change 1414mkdir " ${PACKER_TMP_DIR} "
1515
1616echo " [Step 2/${TOTAL_STEPS} ] cp files to ${PACKER_TMP_DIR} ..."
17- cp -rf pages src config static utils .babelrc next-seo.config.js server.js package.json package-lock.json " ${PACKER_TMP_DIR} "
17+ cp -rf src config public utils .babelrc next-seo.config.js server.js package.json package-lock.json next.config.js " ${PACKER_TMP_DIR} "
1818cp Makefile Makefile.include.mk " ${PACKER_TMP_DIR} "
19- cp next.config.docker.js " ${PACKER_TMP_DIR} /next.config.js"
2019
2120echo " [Step 3/${TOTAL_STEPS} ] creating ${ARCHIVE_NAME} ..."
2221cd " ${PACKER_TMP_DIR} "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments