Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit78bd826

Browse files
committed
build: temp solution for build workflow
docker can not set env vars safely in build-time
1 parent3a35184 commit78bd826

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎deploy/cc.tar.gz‎

-6.17 MB
Binary file not shown.

‎deploy/production/Dockerfile‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ FROM node:8.11
33
RUN mkdir /root/web
44

55
ADD 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
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
8+
9+
ARG GITHUB_CLIENT_ID=3b4281c5e54ffd801f85
10+
ARG SERVE_PORT=8002
811

9-
ARG GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
1012
RUN cd /root/web/ && npm run build:prod
11-
RUN echo"$GITHUB_CLIENT_ID"
1213

1314
ADD loader.sh /usr/local/bin/loader.sh
1415
RUN chmod +x /usr/local/bin/loader.sh
15-
#CMD ["/usr/local/bin/loader.sh"]
16+
CMD ["/usr/local/bin/loader.sh"]

‎package-docker.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version":"0.4.0",
44
"license":"Apache License 2.0",
55
"scripts": {
6-
"build:prod":"echo ${GITHUB_CLIENT_ID} && echo ${GA_TRACING_ID} && echo ${SERVE_PORT}",
6+
"build:prod":"cross-env GOAL=production next build",
77
"build:dev":"cross-env GOAL=dev next build",
88
"launch-old":"cross-env GOAL=production next start -p ${SERVE_PORT}",
99
"launch":"cross-env GOAL=production next build && cross-env GOAL=production next start -p ${SERVE_PORT}",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp