summaryrefslogtreecommitdiffstats
path: root/testscripts/commands/deploy.txt
blob: b21bf0b38e7cadfe090f73ee03bfe5888c14499b (plain)
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
grep 'hello' mybucket/index.html
replace  public/index.html 'hello' 'changed'
hugo deploy --target mydeployment --invalidateCDN --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>