This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
site-cli.yml
67 lines (60 loc) · 2.22 KB
/
site-cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Site CLI configure file
#
# The console application will load this file. If there is a file with the
# same name in the user home directory, new content will be used. So this
# file should not be changed.
# -----------------------------------------------------------------------------
# Nginx site configure file directories.
# -----------------------------------------------------------------------------
available: /etc/nginx/sites-available
enabled: /etc/nginx/sites-enabled
# -----------------------------------------------------------------------------
# Service settings
# -----------------------------------------------------------------------------
service:
reload: true
program: nginx
template: default
root: true
search:
- /etc/nginx
- /usr/local/etc/nginx
- ~/etc/nginx
# -----------------------------------------------------------------------------
# Site function settings
# -----------------------------------------------------------------------------
site:
# Default site group name
default: "@default"
group:
server:
optimizer:
test:
validate:
lost-symbolic-link: true
# -----------------------------------------------------------------------------
# Nginx control commands in different environments.
# -----------------------------------------------------------------------------
templates:
default:
start: %root:sudo% %program%
stop: %root:sudo% %program% -s stop
restart: %root:sudo% %program% -s reopen
reload: %root:sudo% %program% -s reload
brew:
start: %root:sudo% brew services start %program%
stop: %root:sudo% brew services stop %program%
restart: %root:sudo% brew services restart %program%
reload: %root:sudo% brew services reload %program%
ubuntu:
start: %root:sudo% service %program% start
stop: %root:sudo% service %program% stop
restart: %root:sudo% service %program% restart
reload: %root:sudo% service %program% reload
status: %root:sudo% service %program% status
init.d:
start: %root:sudo% /etc/init.d/%program% start
stop: %root:sudo% /etc/init.d/%program% stop
restart: %root:sudo% /etc/init.d/%program% restart
reload: %root:sudo% /etc/init.d/%program% reload
status: %root:sudo% /etc/init.d/%program% status