westdc-zf1/readme.md

59 lines
983 B
Markdown
Raw Normal View History

2018-05-12 09:20:23 +00:00
### shipit部署工具
* node v9+
`npm install -g shipit-cli`
`vim ~/.ssh/config`
```bash
Host sj
Hostname 210.77.68.221
Port 29
User lijianxuan
ServerAliveInterval 60
```
拷贝公钥到服务器下,然后运行部署命令即可部署,无需登录服务器
2018-06-21 08:14:47 +00:00
`shipit main deploy` or `npm run d`
### 时空三极网站数据库
创建用户: `gis`,密码: `gispassword`
```sql
2018-08-15 03:53:25 +00:00
CREATE USER gis WITH
LOGIN
NOSUPERUSER
NOCREATEDB
NOCREATEROLE
INHERIT
NOREPLICATION
CONNECTION LIMIT -1
PASSWORD 'gispassword';
2018-06-21 08:14:47 +00:00
CREATE DATABASE geonetwork
WITH
OWNER = gis
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
CREATE DATABASE metadata
WITH
OWNER = gis
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
```
然后在两个数据库中分别运行
```sql
CREATE EXTENSION dblink;
CREATE EXTENSION hstore;
CREATE EXTENSION pgcrypto;
CREATE EXTENSION "uuid-ossp";
CREATE EXTENSION postgis;
CREATE EXTENSION tablefunc;
```