Hello guys!
This is my first time using this app and my first time posting here.
My goal is to host a website using AWS Lambda and S3. I’m using hugo-lambda for deploying Hugo to AWS. The problem is Hugo can’t find the static
directory even though it was there so the result is the page is not rendering correctly.
I’m using Hugo version is 0.16.0.
My website’s directory
example.com
├── archetypes
├── config.toml
├── content
│ ├── about.md
│ └── post
│ └── My-First-Post.md
├── data
├── layouts
├── static
└── themes
└── hugo-redlounge
├── LICENSE.md
├── README.md
├── archetypes
│ └── default.md
├── images
│ ├── screenshot.png
│ └── tn.png
├── layouts
│ ├── _default
│ │ ├── list.html
│ │ └── single.html
│ ├── index.html
│ └── partials
│ ├── authorsocial.html
│ ├── bodyend.html
│ ├── doctype.html
│ ├── footer.html
│ ├── headend.html
│ ├── header.html
│ ├── listtop.html
│ ├── meta.html
│ ├── og.html
│ ├── sidebar.html
│ ├── sidebarheader.html
│ ├── singletop.html
│ ├── socialsharing.html
│ └── syntaxhighlight.html
├── static
│ ├── css
│ │ ├── lightbox.css
│ │ ├── redlounge.css
│ │ ├── rrssb.css
│ │ └── screen.css
│ ├── favicon.png
│ ├── img
│ │ ├── close.png
│ │ ├── loading.gif
│ │ ├── next.png
│ │ └── prev.png
│ ├── js
│ │ ├── lightbox.min.js
│ │ └── rrssb.min.js
│ └── touch-icon-144-precomposed.png
└── theme.toml
Log
START RequestId: 07c3bf6a-6540-11e6-8b3e-21684d80e78e Version: $LATEST
2016-08-18T12:33:56.607Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e Reading options from event:
{ Records:
[ { s3:
{ object:
{ eTag: '50ed8c18234b65e3baf1417eac1bb03f',
size: 307,
key: 'content/jobs/fossbox.md' },
bucket:
{ arn: 'arn:aws:s3:::input.example.com',
name: 'input.example.com' },
s3SchemaVersion: '1.0' },
eventVersion: '2.0',
eventSource: 'aws:s3',
awsRegion: 'us-east-1',
eventTime: '2015-02-08T22:50:04.028Z',
eventName: 'ObjectCreated:Put' } ] }
2016-08-18T12:33:58.465Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e done downloading
2016-08-18T12:33:58.486Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e made static dir: 0
2016-08-18T12:33:58.486Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e Running hugo
2016-08-18T12:33:58.626Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e hugo-stdout: INFO: 2016/08/18 12:33:58 hugo.go:463: Using config file: /tmp/sources/config.toml
2016-08-18T12:33:58.664Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e hugo-stdout: WARN: 2016/08/18 12:33:58 hugo.go:547: Unable to find static directory for theme hugo-redlounge in /tmp/sources/themes/hugo-redlounge/static
INFO: 2016/08/18 12:33:58 hugo.go:571: /tmp/sources/static/ is the only static directory available to sync from
INFO: 2016/08/18 12:33:58 hugo.go:609: syncing static files to /tmp/sources/public/
Started building site
2016-08-18T12:33:58.764Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e hugo-stdout: INFO: 2016/08/18 12:33:58 site.go:1251: found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
2016-08-18T12:33:59.064Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e hugo-stdout: WARN: 2016/08/18 12:33:59 site.go:2014: Unable to locate layout for 404 page: [404.html theme/404.html]
WARN: 2016/08/18 12:33:59 site.go:1990: "404.html" is rendered empty
0 draft content
0 future content
2 pages created
0 non-page files copied
0 paginator pages created
3 tags created
3 categories created
in 399 ms
2016-08-18T12:33:59.065Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e hugo exited with code: 0
2016-08-18T12:33:59.785Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e done uploading
2016-08-18T12:33:59.785Z 07c3bf6a-6540-11e6-8b3e-21684d80e78e All methods in waterfall succeeded.
END RequestId: 07c3bf6a-6540-11e6-8b3e-21684d80e78e
REPORT RequestId: 07c3bf6a-6540-11e6-8b3e-21684d80e78e Duration: 3368.85 ms Billed Duration: 3400 ms Memory Size: 128 MB Max Memory Used: 71 MB
Cheers,
juanpablo