@@ -6,18 +6,18 @@ applications:
6
6
root : " {{ .ApplicationRoot }}"
7
7
8
8
# The runtime the application uses.
9
- # Complete list of available runtimes: {{ .Assets.Docs.AppReference }}#types
9
+ # Complete list of available runtimes: {{ .Assets.Docs.AppReference }}type/
10
10
type : " {{ .Type }}"
11
11
12
12
# Choose which container profile (ratio CPU+RAM) your app will use. Default value comes from the image itself.
13
- # More information: https://docs.upsun.com/manage- resources/adjust-resources.html#adjust-a-container-profile
13
+ # More information: https://docs.upsun.com/anchors/ resources/manage/configuration/profiles/ adjust/
14
14
# container_profile:
15
15
16
16
# The relationships of the application with services or other applications.
17
17
# The left-hand side is the name of the relationship as it will be exposed
18
18
# to the application in the {{ .Assets.EnvPrefix }}_RELATIONSHIPS variable. The right-hand
19
19
# side is in the form `<service name>:<endpoint name>`.
20
- # More information: {{ .Assets.Docs.AppReference }}# relationships
20
+ # More information: {{ .Assets.Docs.AppReference }}relationships/
21
21
{{ if .Relationships -}}
22
22
relationships :
23
23
{{ range $key, $value := .Relationships }}
@@ -29,7 +29,7 @@ applications:
29
29
{{ end }}
30
30
31
31
# Mounts define directories that are writable after the build is complete.
32
- # More information: {{ .Assets.Docs.AppReference }}# mounts
32
+ # More information: {{ .Assets.Docs.AppReference }}mounts/
33
33
{{ if .Mounts -}}
34
34
mounts :
35
35
{{ range $key, $value := .Mounts -}}
@@ -47,10 +47,10 @@ applications:
47
47
{{- end }}
48
48
49
49
# The web key configures the web server running in front of your app.
50
- # More information: {{ .Assets.Docs.AppReference }}# web
50
+ # More information: {{ .Assets.Docs.AppReference }}web/
51
51
web :
52
52
# Commands are run once after deployment to start the application process.
53
- # More information: {{ .Assets.Docs.AppReference }}# web- commands
53
+ # More information: {{ .Assets.Docs.AppReference }}web/ commands/
54
54
{{- if .WebCommand }}
55
55
commands :
56
56
# The command to launch your app. If it terminates, it’s restarted immediately.
@@ -62,7 +62,7 @@ applications:
62
62
# You can use the $PORT or the $SOCKET environment variable depending on the socket family of your upstream
63
63
{{- if eq "php" .Runtime }}
64
64
# PHP applications run PHP-fpm by default
65
- # Read about alternative commands here: {{ .Assets.Docs.PHP }}# alternate-start-commands
65
+ # Read about alternative commands here: {{ .Assets.Docs.PHP }}alternate-start-commands/
66
66
{{- end }}
67
67
# start: echo 'Put your start command here'
68
68
{{- end }}
@@ -71,11 +71,11 @@ applications:
71
71
# For PHP, the defaults are configured for PHP-FPM and shouldn't need adjustment.
72
72
{{- end }}
73
73
# Whether your app should speak to the webserver via TCP or Unix socket. Defaults to tcp
74
- # More information: {{ .Assets.Docs.AppReference }}#where-to-listen
74
+ # More information: {{ .Assets.Docs.AppReference }}web/upstream/socket-family/
75
75
{{- if .SocketFamily }}
76
76
upstream :
77
77
# Whether your app should speak to the webserver via TCP or Unix socket. Defaults to tcp
78
- # More information: {{ .Assets.Docs.AppReference }}#where-to-listen
78
+ # More information: {{ .Assets.Docs.AppReference }}web/upstream/socket-family/
79
79
socket_family : {{ .SocketFamily }}
80
80
{{- else }}
81
81
# upstream:
@@ -84,7 +84,7 @@ applications:
84
84
85
85
{{- if .Locations }}
86
86
# Each key in locations is a path on your site with a leading /.
87
- # More information: {{ .Assets.Docs.AppReference }}# locations
87
+ # More information: {{ .Assets.Docs.AppReference }}web/ locations/
88
88
locations :
89
89
{{ range $key, $value := .Locations -}}
90
90
" {{ $key }} " :
@@ -108,18 +108,18 @@ applications:
108
108
{{ end }}
109
109
110
110
# Alternate copies of the application to run as background processes.
111
- # More information: {{ .Assets.Docs.AppReference }}# workers
111
+ # More information: {{ .Assets.Docs.AppReference }}workers/
112
112
# workers:
113
113
114
114
# The timezone for crons to run. Format: a TZ database name. Defaults to UTC, which is the timezone used for all logs
115
115
# no matter the value here. More information: {{ .Assets.Docs.TimeZone }}
116
116
# timezone: <time-zone>
117
117
118
118
# Access control for roles accessing app environments.
119
- # More information: {{ .Assets.Docs.AppReference }}# access
119
+ # More information: {{ .Assets.Docs.AppReference }}access/
120
120
# access:
121
121
122
- # Variables to control the environment. More information: {{ .Assets.Docs.AppReference }}# variables
122
+ # Variables to control the environment. More information: {{ .Assets.Docs.AppReference }}variables/
123
123
{{ if .Environment -}}
124
124
variables :
125
125
env :
@@ -143,11 +143,11 @@ applications:
143
143
{{- end }}
144
144
{{- end }}
145
145
146
- # Outbound firewall rules for the application. More information: {{ .Assets.Docs.AppReference }}# firewall
146
+ # Outbound firewall rules for the application. More information: {{ .Assets.Docs.AppReference }}firewall/
147
147
# firewall:
148
148
149
149
# Specifies a default set of build tasks to run. Flavors are language-specific.
150
- # More information: {{ .Assets.Docs.AppReference }}# build
150
+ # More information: {{ .Assets.Docs.AppReference }}build/
151
151
{{ if .BuildFlavor -}}
152
152
build :
153
153
flavor : {{ .BuildFlavor }}
@@ -159,7 +159,7 @@ applications:
159
159
# Installs global dependencies as part of the build process. They’re independent of your app’s dependencies and
160
160
# are available in the PATH during the build process and in the runtime environment. They’re installed before
161
161
# the build hook runs using a package manager for the language.
162
- # More information: {{ .Assets.Docs.AppReference }}# dependencies
162
+ # More information: {{ .Assets.Docs.AppReference }}dependencies/
163
163
{{ if .Dependencies -}}
164
164
dependencies :
165
165
{{- range $key, $value := .Dependencies }}
@@ -187,10 +187,10 @@ applications:
187
187
{{- end }}
188
188
189
189
# Hooks allow you to customize your code/environment as the project moves through the build and deploy stages
190
- # More information: {{ .Assets.Docs.AppReference }}# hooks
190
+ # More information: {{ .Assets.Docs.AppReference }}hooks/
191
191
hooks :
192
192
# The build hook is run after any build flavor.
193
- # More information: {{ .Assets.Docs.Hooks }}# build-hook
193
+ # More information: {{ .Assets.Docs.Hooks }}compare/ build/
194
194
build : |
195
195
set -eux
196
196
{{ range $step := .BuildSteps }}
@@ -200,7 +200,7 @@ applications:
200
200
# echo 'I am a build step'
201
201
{{ end }}
202
202
# The deploy hook is run after the app container has been started, but before it has started accepting requests.
203
- # More information: {{ .Assets.Docs.Hooks }}# deploy-hook
203
+ # More information: {{ .Assets.Docs.Hooks }}compare/ deploy/
204
204
deploy : |
205
205
set -eux
206
206
{{ range $deploycmd := .DeployCommand }}
@@ -210,25 +210,25 @@ applications:
210
210
{{ end }}
211
211
212
212
# The post_deploy hook is run after the app container has been started and after it has started accepting requests.
213
- # More information: {{ .Assets.Docs.Hooks }}#deploy-hook
213
+ # More information: {{ .Assets.Docs.Hooks }}compare/post-deploy/
214
214
# post_deploy: |
215
215
216
216
# Scheduled tasks for the app.
217
- # More information: {{ .Assets.Docs.AppReference }}# crons
217
+ # More information: {{ .Assets.Docs.AppReference }}crons/
218
218
# crons:
219
219
220
- # Customizations to your PHP or Lisp runtime. More information: {{ .Assets.Docs.AppReference }}# runtime
220
+ # Customizations to your PHP or Lisp runtime. More information: {{ .Assets.Docs.AppReference }}runtime/
221
221
# runtime:
222
222
223
- # More information: {{ .Assets.Docs.AppReference }}# additional-hosts
223
+ # More information: {{ .Assets.Docs.AppReference }}additional-hosts/
224
224
# additional_hosts:
225
225
226
226
# The services of the project.
227
227
#
228
228
# Each service listed will be deployed
229
229
# to power your {{ .Assets.ServiceName }} project.
230
230
# More information: {{ .Assets.Docs.Services }}
231
- # Full list of available services: {{ .Assets.Docs.Services }}# available-services
231
+ # Full list of available services: {{ .Assets.Docs.Services }}available/
232
232
{{- if .Services }}
233
233
services :
234
234
{{ range $value := .Services }}
@@ -252,7 +252,7 @@ routes:
252
252
type : upstream
253
253
upstream : " {{ .Name }}:http"
254
254
# A basic redirect definition
255
- # More information: {{ .Assets.Docs.Routes }}#basic- redirect-definition
255
+ # More information: {{ .Assets.Docs.Routes }}examples/ redirect/
256
256
" https://www.{{ " {default}" }}":
257
257
type : redirect
258
258
to : " https://{{ " {default}" }}/"
0 commit comments