Publically hosted static website on S3 for the non-server controlled pages of MorTraqr.com
Run
npm run dev
This generates an index.html file in the /dist folder.
The HTML is mananged through the pug files. Make adjustments and webpack should change them automatically if you have already run npm run dev
All the CSS is managed through the main repo here.
Upload the changes to this bucket.
npm run prod
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'
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.