File: deploy.txt

package info (click to toggle)
hugo 0.153.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 49,384 kB
  • sloc: javascript: 31,879; ansic: 2,321; xml: 350; makefile: 197; asm: 67; sh: 50
file content (24 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Test the deploy command.

hugo deploy -h
stdout 'Deploy your site to a cloud provider'
mkdir mybucket
hugo deploy --target mydeployment --invalidateCDN=false
grep 'hello' mybucket/index.html
replace  public/index.html 'hello' 'changed'
hugo deploy --target mydeployment --dryRun
stdout 'Would upload: index.html'
stdout 'Would invalidate CloudFront CDN with ID foobar'
-- hugo.toml --
disableKinds = ["RSS", "sitemap", "robotsTXT", "404", "taxonomy", "term"]
baseURL = "https://example.org/"
[deployment]
[[deployment.targets]]
name = "myfirst"
url="gs://asdfasdf"
[[deployment.targets]]
name = "mydeployment"
url="file://./mybucket"
cloudFrontDistributionID = "foobar"
-- public/index.html --
<html><body>hello</body></html>