forked from jasder/forgeplus
Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
jasder | a89b18e7f1 | |
jasder | 1a54f79e26 | |
jasder | 23dc3aa3e7 | |
jasder | e17bd3b40a | |
jasder | b7ce99ad97 | |
jasder | b9284f57cf |
|
@ -1,34 +0,0 @@
|
||||||
#pipeline
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
steps:
|
|
||||||
# 构建Docker镜像并推送到仓库
|
|
||||||
# 定义镜像Hub路径以及账号密码
|
|
||||||
- name: Docker镜像构建
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username: username
|
|
||||||
password: pwd
|
|
||||||
repo: repoUrl
|
|
||||||
tags: latest
|
|
||||||
- name: golang编译
|
|
||||||
image: golang
|
|
||||||
commands:
|
|
||||||
- go build
|
|
||||||
# 根据实际情况修改主机ip、账号、密码
|
|
||||||
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
|
|
||||||
|
|
||||||
- name: 远程主机部署
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
|
||||||
host: 192.168.1.1
|
|
||||||
username: username
|
|
||||||
password: 'pasword'
|
|
||||||
port: 22
|
|
||||||
commands:
|
|
||||||
- chmod +x /home/deploy.sh
|
|
||||||
- ./home/deploy.sh
|
|
18
README.md
18
README.md
|
@ -1,14 +1,13 @@
|
||||||
----
|
----
|
||||||
# 本地开发部署步骤
|
# 本地开发部署步骤
|
||||||
# 本地开发部署步骤
|
|
||||||
|
|
||||||
#### 1. [安装依赖包](#安装依赖包)
|
#### 1. 安装依赖包
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle install
|
bundle install
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 2. [配置初始化文件](#配置初始化文件)
|
#### 2. 配置初始化文件
|
||||||
进入项目根目录执行一下命令:
|
进入项目根目录执行一下命令:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -24,8 +23,7 @@ touch config/elasticsearch.yml
|
||||||
rails db:create
|
rails db:create
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 4. [导入数据表结构](#配置初始化文件)
|
#### 4. 导入数据表结构
|
||||||
<span id = "配置初始化文件">导入数据表结构</span>
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bundle exec rake sync_table_structure:import_csv
|
bundle exec rake sync_table_structure:import_csv
|
||||||
|
@ -48,15 +46,7 @@ http://localhost:3000/projects
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
## <a name='TableOfContent'> Table of Content </a>
|
|
||||||
[1. Anchors](#Anchors)
|
|
||||||
[2. Block Elements](#BlockElements)
|
|
||||||
|
|
||||||
## <a name="Anchors"> 1. Anchors </a>
|
|
||||||
See [Table of Content](#TableOfContent) above.
|
|
||||||
## <a name="BlockElements"> 2. Block Elements </a>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
# API文档
|
# API文档
|
||||||
|
|
||||||
|
@ -2008,7 +1998,7 @@ http://localhost:3000/api/18816895620/mirror_demo/contents/files/delete | jq
|
||||||
"author": {
|
"author": {
|
||||||
"name": "18816895620",
|
"name": "18816895620",
|
||||||
"email": "2456233122@qq.com",
|
"email": "2456233122@qq.com",
|
||||||
"date": "2020-01-08T07:57:39Z"
|
"date": "2020-01-08T07:57:34Z"
|
||||||
},
|
},
|
||||||
"committer": {
|
"committer": {
|
||||||
"name": "18816895620",
|
"name": "18816895620",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
caicai
|
<html>
|
||||||
caicai
|
<head></head>
|
||||||
caicai
|
<body></body>
|
||||||
good luck
|
</html>
|
|
@ -1 +0,0 @@
|
||||||
sdfsdfsf
|
|
|
@ -0,0 +1 @@
|
||||||
|
ggggg
|
|
@ -1,3 +0,0 @@
|
||||||
def test_devops
|
|
||||||
puts "This is good idea."
|
|
||||||
end
|
|
|
@ -1,5 +0,0 @@
|
||||||
def test_r
|
|
||||||
puts "fsaf"
|
|
||||||
|
|
||||||
puts "success"
|
|
||||||
end
|
|
Loading…
Reference in New Issue