Thursday, May 14, 2020

Github Pages SSL and Custom Domain with Godaddy DNS Setup

Getting Started
Create a new github repo with naming convention - "XXX.github.io"
Godaddy DNS Settings
Point your Godaddy domain to the Github servers with 4 A Name records as follows and 1 CNAME record to redirect to your "XXX.github.io" repo created in step 1.

Also, when you buy a new domain from Godaddy there will be a CNAME record pointed at value of "Parked" - this record needs to be deleted.


Github Repo SSL settings
You will need to give Godaddy roughly 15min - 1 hour to propagate the new DNS settings created above. You will see in your Github Repo settings the following setup once Github completes the TLS issuing process. Confirm "Enforce HTTPS" is checked here to complete the setup. This will also add a new CNAME record to the root directory of the repo.
Preview your site live being served over HTTPS

Raspberry Pi headless login from Mac


Enable SSH from the Raspberry Pi

Either connect the Raspberry Pi to Wifi or connect it to the MAC via ethernet cord

Connect to the Pi from a terminal on your mac with the following

ssh -v pi@raspberrypi.local


SFDX Plugin @salesforce/lwc-dev-server

@salesforce/lwc-dev-server


Getting Started

You will need to have the Salesforce DX CLI installed.
Run the following command to verify CLI installation.
sfdx

Run the following command to install the lwc-dev-server plugin
sfdx plugins:install @salesforce/lwc-dev-server


Navigate to a project directory that contains a Lightning Web Component and run the following to start the local dev server
cd mySFDXProjectWithManifest
sfdx force:lightning:lwc:start


If successful should see the following:

Starting LWC Local Development.
    Dev Hub Org: nick@cirruscode.com
    Scratch Org: nick@cirruscode.com
    Api Version: 48.0
Template version key 8ef8ca85d9
[HPM] Proxy created: /  ->  https://nickforcedev-dev-ed.my.salesforce.com
[HPM] Subscribed to http-proxy events:  [ 'proxyReq', 'error', 'close' ]
Server up on http://localhost:3333


Navigate to http://localhost:3333/



SFDX commands are also available from VSCode to manage the local development server