add Dockerfile
This commit is contained in:
parent
466f23de08
commit
2399a0cdc0
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
*.md
|
||||||
|
.git
|
||||||
|
node_modules
|
||||||
|
test
|
||||||
|
test_coverage
|
||||||
|
webpack
|
||||||
|
src
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM jackhu/jenkins-deploy-nodejs:6
|
||||||
|
MAINTAINER Jack Hu <hello@jackhu.top>
|
||||||
|
|
||||||
|
EXPOSE 8400
|
||||||
|
|
||||||
|
CMD ["npm","run","pm2-start"]
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Jackblog 是使用 Node.js + MongoDB + 其它客户端框架开发的个人博客系统,前后端分离,仿简书模板.
|
Jackblog 是使用 Node.js + MongoDB + 其它客户端框架开发的个人博客系统,前后端分离,仿简书模板.
|
||||||
服务端有: [express 版](https://github.com/jackhutu/jackblog-api-express) , [koa 版](https://github.com/jackhutu/jackblog-api-koa)
|
服务端有: [express 版](https://github.com/jackhutu/jackblog-api-express) , [koa 版](https://github.com/jackhutu/jackblog-api-koa)
|
||||||
客户端有: [angular1.x 版](https://github.com/jackhutu/jackblog-angular1) , [angular2.x 版](https://github.com/jackhutu/jackblog-angular2) , [react redux 版](https://github.com/jackhutu/jackblog-react-redux) , [vue 版](https://github.com/jackhutu/jackblog-vue)
|
客户端有: [angular1.x 版](https://github.com/jackhutu/jackblog-angular1) , [angular2.x 版](https://github.com/jackhutu/jackblog-angular2) , [react 版](https://github.com/jackhutu/jackblog-react) , [vue 版](https://github.com/jackhutu/jackblog-vue)
|
||||||
移动端有: [react native 版](https://github.com/jackhutu/jackblog-react-native-redux), [ionic2.0 版](https://github.com/jackhutu/jackblog-ionic2)
|
移动端有: [react native 版](https://github.com/jackhutu/jackblog-react-native-redux), [ionic2.0 版](https://github.com/jackhutu/jackblog-ionic2)
|
||||||
##### 此为客户端vue版, 需要配合服务端使用.
|
##### 此为客户端vue版, 需要配合服务端使用.
|
||||||
|
|
||||||
@ -67,7 +67,6 @@ $ gulp build 或 gulp serve:dist
|
|||||||
```
|
```
|
||||||
$ pm2 start process.json
|
$ pm2 start process.json
|
||||||
```
|
```
|
||||||
可参考[利用git和pm2一键布署项目到vps](http://jackhu.top/article/55cd8e00c6e998b817a930c7)
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
MIT
|
MIT
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "jackblog-vue",
|
"name": "jackblog-vue",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"description": "Jackblog vue 版",
|
"description": "Jackblog vue 版",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "gulp serve",
|
"start": "gulp serve",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"pm2-start": "pm2 start process.json",
|
"pm2-start": "pm2 start --no-daemon process.json"
|
||||||
"pm2-restart": "pm2 restart process.json"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -68,7 +67,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.14.0",
|
"express": "^4.14.0",
|
||||||
"pm2": "^1.1.3",
|
|
||||||
"serve-favicon": "^2.3.0"
|
"serve-favicon": "^2.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
20
process.json
20
process.json
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"apps" : [
|
"apps" : [
|
||||||
{
|
{
|
||||||
"name" : "jackblog-vue",
|
"name" : "jackblog-vue",
|
||||||
"script" : "./server.js",
|
"script" : "./server.js",
|
||||||
"log_date_format" : "YYYY-MM-DD HH:mm Z",
|
"log_date_format" : "YYYY-MM-DD HH:mm Z",
|
||||||
"out_file" : "./logs/pm2-out.log",
|
"out_file" : "./logs/pm2-out.log",
|
||||||
"error_file" : "./logs/pm2-err.log",
|
"error_file" : "./logs/pm2-err.log",
|
||||||
"pid_file" : "./logs/jackblog-vue.pid",
|
"pid_file" : "./logs/jackblog-vue.pid",
|
||||||
"ignoreWatch" : ["[\\/\\\\]\\./", "node_modules"],
|
"ignoreWatch" : ["[\\/\\\\]\\./", "node_modules"],
|
||||||
"watch" : "false",
|
"watch" : "false",
|
||||||
"exec_mode" : "fork_mode", //cluster_mode
|
"exec_mode" : "fork_mode", //cluster_mode
|
||||||
"env": {
|
"env": {
|
||||||
"NODE_ENV": "production"
|
"NODE_ENV" : "production"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user