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.

Commit738086e

Browse files
committed
chore(build): deploy step fix
1 parent31d2670 commit738086e

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

‎Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dep:
2424
dev: before_action
2525
@$(JSON_CLI) -s'.[0] * .[1]' config/config.json config/config.dev.json> /tmp/config.json
2626
@cp /tmp/config.json ./config/config.json
27+
npm run update.version
2728
npm run dev
2829

2930
build:

‎config/version.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
exportconstAPP_VERSION='1.0.91'
1+
exportconstAPP_VERSION='1.0.11'

‎deploy/production/packer.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fi
1414
mkdir"${PACKER_TMP_DIR}"
1515

1616
echo"[Step 2/${TOTAL_STEPS}] cp files to${PACKER_TMP_DIR} ..."
17+
npm run update.version
1718
cp -rf src server config public utils"${PACKER_TMP_DIR}"
1819
cp .env.production tsconfig.json .babelrc package.json package-lock.json next.config.js i18n.js global.d.ts"${PACKER_TMP_DIR}"
1920
cp Makefile Makefile.include.mk"${PACKER_TMP_DIR}"

‎deploy/production/web.tar.gz‎

57 Bytes
Binary file not shown.

‎package.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"dev":"cross-env NODE_ENV=dev next dev",
77
"dev.boost":"next-boost",
88
"ci":"cross-env NODE_ENV=ci node server",
9-
"prebuild":"node -p\"'export const APP_VERSION = ' + JSON.stringify(require('./package.json').version)\" > config/version.ts",
10-
"prebuild.ci":"npm run prebuild",
11-
"prebuild.dev":"npm run prebuild",
12-
"prebuild.prod":"npm run prebuild",
9+
"update.version":"node -p\"'export const APP_VERSION = ' + JSON.stringify(require('./package.json').version)\" > config/version.ts",
1310
"build":"next build",
1411
"build:clean":"run-s dist clean",
1512
"build.prod":"cross-env NODE_ENV=production next build",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp