Skip to content

Commit 92c96fc

Browse files
author
Suhwan Cha
committed
release
1 parent e385578 commit 92c96fc

23 files changed

+3687
-200
lines changed

Diff for: .eslintrc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ module.exports = {
1414
plugins: [
1515
],
1616
// add your custom rules here
17-
rules: {}
17+
rules: {
18+
'no-unused-vars': 'off',
19+
'vue/no-mutating-props': 'off'
20+
}
1821
}

Diff for: .gcloudignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file specifies files that are *not* uploaded to Google Cloud Platform
2+
# using gcloud. It follows the same syntax as .gitignore, with the addition of
3+
# "#!include" directives (which insert the entries of the given .gitignore-style
4+
# file at that point).
5+
#
6+
# For more information, run:
7+
# $ gcloud topic gcloudignore
8+
#
9+
.gcloudignore
10+
# If you would like to upload your .git directory, .gitignore file or files
11+
# from your .gitignore file, remove the corresponding line
12+
# below:
13+
.git
14+
.gitignore
15+
16+
# Node.js dependencies:
17+
node_modules/

Diff for: Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM node:11.13.0-alpine
2+
3+
# create destination directory
4+
RUN mkdir -p /usr/src/nuxt-app
5+
WORKDIR /usr/src/nuxt-app
6+
7+
# update and install dependency
8+
RUN apk update && apk upgrade
9+
RUN apk add git
10+
11+
# copy the app, note .dockerignore
12+
COPY . /usr/src/nuxt-app/
13+
RUN npm install
14+
15+
# build necessary, even if no static files are needed,
16+
# since it builds the server as well
17+
RUN npm run build
18+
19+
# expose 5000 on container
20+
EXPOSE 3000
21+
22+
# set app serving to permissive / assigned
23+
ENV NUXT_HOST=0.0.0.0
24+
# set app port
25+
ENV NUXT_PORT=3000
26+
27+
# start the app
28+
CMD [ "npm", "start" ]

Diff for: app.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
runtime: nodejs10
2+
3+
instance_class: F1
4+
5+
handlers:
6+
- url: /_nuxt
7+
static_dir: .nuxt/dist/client
8+
secure: always
9+
10+
- url: /(.*\.(gif|png|jpg|ico|txt))$
11+
static_files: static/\1
12+
upload: static/.*\.(gif|png|jpg|ico|txt)$
13+
secure: always
14+
- url: /.*
15+
script: auto
16+
secure: always
17+
18+
env_variables:
19+
HOST: "0.0.0.0"

0 commit comments

Comments
 (0)