Skip to main content

Deploy your portfolio site from GitHub using Netlify

Prerequisite: You must have a github account


Create project and clone to your local

  • Create a github project in github.com
  • Clone your code from github cloud to local
    • git clone https://username:password@github.com/alexjohn/project1.git
  • Git init
Make changes to your code
  • Git add . 
  • Git commit -m "commit message"
  • Git push origin master
Above steps will make you push your local changes to github cloud

Log in to your Netlify account & Click New site from Git

Step 1





Step 2





Select your repository and publish your site

You will be given a random generated URL from Netlify. You can update the replace the URL with  your custom domain name

To map your custom domain name to Netlify site

  • Add a A record to your domain in your domain registrar site (godaddy/namecheap)
    • A record
    • Host @
    • IP Address: 104.198.14.52

If your DNS provider does not support CNAME-style resolution for apex domains, you must configure your domain with a single-server A record:
  1. Find your DNS provider's DNS record settings for your apex domain, such as petsofnetlify.com.
  2. Add an A record. Depending on your provider, leave the host field empty or enter @.
  3. Point the record to Netlify's load balancer IP address: 104.198.14.52.
  4. Save your settings. It may take a full day for the settings to propagate across the global Domain Name System.

  • Add a CNAME Record
    • CNAME
    • Host WWW
    • Netlify domain name
Netlify provides free Letsencrypt certificate


Fore more info see this video - https://www.youtube.com/watch?v=bjVUqvcCnxM


Comments

Popular posts from this blog

Analyse Battery Usage using Battery Historian Tool in Android Phones

Battery Historian: Battery Historian is a tool to inspect battery related information and events on an Android device running Android 5.0 Lollipop (API level 21) and later, while the device was not plugged in. Battery Historian Tool: Ideally you should be hosting this tool in local server, since that takes time we can use this tool freely available online https://bathist.ef.lc/ Steps to do before taking battery logs: To reset the existing battery logs for a phone adb shell dumpsys batterystats --reset Now use the application which you want to take the battery analytics. After you reach the desired time you can connect the phone to your PC to take the Bug Report file. Command to use: For devices Android 7.0 & higher $ adb bugreport bugreport.zip For devices Android 6.0 & lower $ adb bugreport > bugreport.txt Start Analyzing now Open  https://bathist.ef.lc/ Upload the bugreport.txt Filter the app using the package name to get ...

Run DVWA in a docker environment

DVWA is a Damn Vulnerable Web Application created for users to use (exploit) while learning web security testing. Requirement: Docker installed in your system Steps to install the DVWA app in Docker: Launch Docker Run 'docker pull vulnerables/web-dvwa' (To pull the DVWA file from Docker Hub) Once pull succeeds, Run the command 'docker run --rm -it -p 80:80 vulnerables/web-dvwa' Now your DVWA app is running in docker which can be accessed by 'localhost:80' or '127.0.0.1:80' Hit the URL to open the DVWA app in your browser   Just click on the Create / Reset database button and it will generate any additional configuration needed. Login with default credentials To login you can use the following credentials: Username : admin Password : password Set the difficulty level The default difficulty level is the impossible level, you can change it in DVWA Security item in the left menu. Happy Hacking!

Create Google Account Using your work email ID

Google allows user to create a google account using any work email ID Visit this URL https://support.google.com/accounts/answer/27441?hl=en Click on 'Create a Google Account' shown in Step 1 Enter first name, last name and desired email name And click on "Use my current email address instead" Now you should be able to create a google account using work email.