Skip to content

Commit a77531f

Browse files
committed
..
2 parents c9c6cf4 + d9160bb commit a77531f

25 files changed

+37
-45
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1+
<<<<<<< HEAD
12
*/node_modules/
23
credentials.js
34
*/logs/
45
.project
6+
=======
7+
## 忽略 .idea配置文件
8+
.idea/
9+
## 忽略models文件夹
10+
node_modules/
11+
## 忽略 加密文件
12+
##credentials.js
13+
## 删除项目文件
14+
.project
15+
## 删除运行过程中的日志文件 .log
16+
logs/
17+
*.log
18+
>>>>>>> develop

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Using a OS
2+
# FROM ubuntu
3+
4+
# MAINTAINER weiqinl <https://github.com/weiqinl>
5+
# 从DockerHub拉取一个Node.js的官方Docker镜像,作为我们环境的基础镜像
6+
FROM node:4.2.2
7+
MAINTAINER weiqinl <https://github.com/weiqinl>
8+
#创建一个位于弄起内部的代码运行文件夹,并将代码复制进去,且通过npm来安装依赖包
9+
RUN mkdir -p /usr/src/app
10+
WORKDIR /usr/src/app
11+
COPY package.json /usr/src/app/
12+
RUN npm install --registry=https://registry.npm.taobao.org
13+
COPY . /usr/src/app
14+
15+
# 端口暴露
16+
EXPOSE 80
17+
18+
# ENTRYPOINT指令,让Node.js程序作为该Docker镜像的主运行入口,并将其运行起来。
19+
ENTRYPOINT ["supervisor", "./bin/www"]
20+
File renamed without changes.
File renamed without changes.

blog/package.json

Lines changed: 0 additions & 22 deletions
This file was deleted.
File renamed without changes.

credentials.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
cookieSecret: 'myblog'
3+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)