Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

DarthOstrich/mortraqr-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publically hosted static website on S3 for the non-server controlled pages of MorTraqr.com

Build Assets

Run

npm run dev

This generates an index.html file in the /dist folder.

Changing the HTML

The HTML is mananged through the pug files. Make adjustments and webpack should change them automatically if you have already run npm run dev

Changing CSS

All the CSS is managed through the main repo here.

Upload changes

Upload the changes to this bucket.

Run webpack production first before uploading

npm run prod

Upload to S3 bucket

Check for buckets

aws s3 ls

You can run a sync of the changes. The dist folder needs to get synced with the home directory of the bucket.

Run a sync. The excludes should have all the files that need to be ignored, however if you need to add any more, or less, use the --exclude tag.

aws s3 sync ./dist s3://mortraqr.com/ --exclude '.DS_Store'

Troubleshooting

The website is routed through Cloudfront, so it may take a while for the changes to take place.

To verify the changes took effect, you can visit the direct URL here

If you don't want to wait, go to the distribution on AWS and create an invalidation. This will reset the cache.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published