* @return {Promise<undefined>} empty promise, returns no value
* @instance
*/
- async publish(bucket) {
+ async publish(host) {
- internals.debuglog(`Publishing to ${bucket}`);
+ internals.debuglog(`Publishing to ${host}`);
try {
await internals.exec('which aws');
}
}
try {
- await internals.exec(`aws s3 sync --acl public-read --delete ${this.staticDirectory} s3://${bucket}`);
- await internals.exec(`aws s3 cp --content-type 'text/plain; charset=utf-8 ' --acl public-read ${this.staticDirectory}/index.txt s3://${bucket}`);
+ internals.debuglog(`Copying ephemeral blog from ${this.staticDirectory}`);
+ await internals.exec(`rsync -r ${this.staticDirectory}/ ${host}`);
}
catch (err) {
console.error('Failed to publish');
try {
const gemlogPath = resolve(join(__dirname, '../', '.gemlog'));
- internals.debuglog(`Reading archive from ${gemlogPath}`);
+ internals.debuglog(`Copying archive from ${gemlogPath}`);
await internals.exec(`rsync -r ${gemlogPath}/ ${host}`);
}
catch (err) {
<script src="./js/blog.js"></script>
- <link href="./css/style.css" rel="stylesheet">
+ <link href="/css/style.css" rel="stylesheet">
<link href="./feed.xml" rel="alternate" hreflang="en" title="RSS feed">
<script type="module" src="//www.unlimited.pizza/js/animation.js"></script>