Git - How to create a Pull Request with no history of commits
Introduction If you working on a github project in a team. Consider you have…
May 30, 2018
Static websites have several advantages over dyanamic websites. If you are running your personal blog or portfolio or small websites. Static websites is the way to go.
Although, this post is not for listing benefits of static website. I will write more on this in another post.
Click on bucket policy. In the editor, type below:
{
"Version": "2012-10-17",
"Id": "Policy1527570565509",
"Statement": [
{
"Sid": "Stmt1527570562766",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::www.gyanblog.com/*"
}
]
}
Remember to replace your bucket name in Resource above.
Note: It will now show your bucket as Public access. You require to have this bucket public read access.
Note, for SEO purpose you would want your website to open on either www. version or non-www version. Create another bucket with non-www version, say: gyanblog.com
Again, goto Public tab on this bucket. Put above policy in Bucket policy. (Exactly same, except bucket name)
{
"Version": "2012-10-17",
"Id": "Policy1527570565509",
"Statement": [
{
"Sid": "Stmt1527570562766",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::gyanblog.com/*"
}
]
}
Note: the non-www bucket above.
Note: We will have our website to open on https protocol. With cloudflare free SSL support.
Now, copy your website files over ot this bucket.
Note down your URL from static website hosting tab. Try opening that URL in browser. You should see your website. If you are not seeing expected result. You should see above steps carefully.
Proceed only when you see your website above.
I assume you have registered on cloudflare free account, and added your website.
From where you purchased your domain, goto its DNS setting. And, change its nameservers as mentioned in DNS tab of cloudflare. In my case,
Wait for few minutes, to allow DNS changes to be done. It should be done with in 10 minutes. But, in some cases, it might take hours.
Now, if you open your website name. You would see your static website pages.
All set.
Hope you enjoyed the post.
Introduction If you working on a github project in a team. Consider you have…
Introduction In this post, we will see how we can apply a patch to Python and…
Introduction When I migrated all of my drupal-7 website to drupal-8, I wrote…
You can either do tail -f drupal.log or open it in an editor like vim.
If your youtube video looks like:https://www.youtube.com/watch?v=g0kFl7sBdDQ…
Tag the image, by seeing its image id, from docker images command docker tag 04d…
Introduction Strapi is a backend system provides basic crud operations with…
Introduction I had to create many repositories in an Github organization. I…
Introduction I was trying to download some youtube videos for my kids. As I have…
Introduction In this post, we will explore some useful command line options for…
Introduction In this post, we will see how we can apply a patch to Python and…
Introduction We will introduce a Package Manager for Windows: . In automations…