Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d00fed10
authored
Sep 25, 2023
by
Lays-lzq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增g云配置
parent
59c2dfb7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
cdzhcmDockerfile
+18
-0
cdzhcmStart.sh
+7
-0
package.json
+4
-0
No files found.
cdzhcmDockerfile
0 → 100644
View file @
d00fed10
FROM alpine AS builder
WORKDIR /home/app
RUN apk add --no-cache --update nodejs yarn
COPY package.json yarn.lock ./
RUN yarn install --registry=https://registry.yarnpkg.com
FROM registry.cn-hangzhou.aliyuncs.com/open_images/node12.13.1-pm2
ADD ./ /var/www/web_lottery
ENV HOST 0.0.0.0
ENV TZ Asia/Shanghai
WORKDIR /var/www/web_lottery
COPY --from=builder /home/app/package.json ./package.json
COPY --from=builder /home/app/node_modules ./node_modules
RUN yarn build:cdzhcm
RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml Dockerfile README.md start.sh
EXPOSE 4002
RUN chmod +x cdzhcmStart.sh
ENTRYPOINT ["./cdzhcmStart.sh"]
cdzhcmStart.sh
0 → 100644
View file @
d00fed10
#!/bin/sh
yarn run pm2:cdzhcm
while
true
do
sleep 5
;
done
package.json
View file @
d00fed10
...
...
@@ -16,6 +16,7 @@
"serve:huawei"
:
"cross-env mode=huawei nuxt"
,
"serve:cbnclouds"
:
"cross-env mode=cbnclouds nuxt"
,
"serve:cuc"
:
"cross-env mode=cuc nuxt"
,
"serve:cdzhcm"
:
"cross-env mode=cdzhcm nuxt"
,
"build:dev"
:
"cross-env mode=test nuxt build"
,
"build:pre"
:
"cross-env mode=preview nuxt build"
,
"build:prod"
:
"cross-env mode=production nuxt build"
,
...
...
@@ -25,6 +26,7 @@
"build:huawei"
:
"cross-env mode=huawei nuxt build"
,
"build:cbnclouds"
:
"cross-env mode=cbnclouds nuxt build"
,
"build:cuc"
:
"cross-env mode=cuc nuxt build"
,
"build:cdzhcm"
:
"cross-env mode=cdzhcm nuxt build"
,
"start:dev"
:
"cross-env mode=test nuxt start"
,
"start:pre"
:
"cross-env mode=preview nuxt start"
,
"start:prod"
:
"cross-env mode=production nuxt start"
,
...
...
@@ -34,6 +36,7 @@
"start:huawei"
:
"cross-env mode=huawei nuxt start"
,
"start:cbnclouds"
:
"cross-env mode=cbnclouds nuxt start"
,
"start:cuc"
:
"cross-env mode=cuc nuxt start"
,
"start:cdzhcm"
:
"cross-env mode=cdzhcm nuxt start"
,
"pm2:dev"
:
"pm2 start pm2.json --only lottery-test"
,
"pm2:pre"
:
"pm2 start pm2.json --only lottery-pre"
,
"pm2:prod"
:
"pm2 start pm2.json --only lottery-prod"
,
...
...
@@ -43,6 +46,7 @@
"pm2:huawei"
:
"pm2 start pm2.json --only lottery-huawei"
,
"pm2:cbnclouds"
:
"pm2 start pm2.json --only lottery-cbnclouds"
,
"pm2:cuc"
:
"pm2 start pm2.json --only lottery-cuc"
,
"pm2:cdzhcm"
:
"pm2 start pm2.json --only lottery-cdzhcm"
,
"generate"
:
"nuxt generate"
,
"lint:js"
:
"eslint --ext
\"
.js,.vue
\"
--ignore-path .gitignore ."
,
"lint:style"
:
"stylelint
\"
**/*.{vue,css}
\"
--ignore-path .gitignore"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment