CodeSigils / netlify-in-practice

Netlify in practice tutorials

Repository from Github https://github.comCodeSigils/netlify-in-practiceRepository from Github https://github.comCodeSigils/netlify-in-practice

Netlify in practice

A comprehensive "intro to Netlify" video.

google-fu inurl:ftp inurl:web.config filetype:config

Deploy

  • 4 methods

    • Netlify Drop

    • Netlify CLI

      • Installation:

        yarn global add netlify-cli or npm i -g netlify-cli

      • Initialization:

      netlify init

      No git remote was found, would you like to set one up?

      It is recommended that you initialize a site that has a remote repository in GitHub.

      This will allow for Netlify Continuous deployment to build branch & PR previews.

      For more details on Netlify CI checkout the docs: http://bit.ly/2N0Jhy5

      ? Do you want to create a Netlify site without a git repository? No, I will connect this directory with GitHub first

      To initialize a new git repo follow the steps below.

      1. Initialize a new repo:

        git init

      2. Commit your files

        git add .

      3. Commit your files

        git commit -m 'initial commit'

      4. Create a new repo in GitHub https://github.com/new

      5. Link the remote repo with this local directory

        git remote add origin git@github.com:YourGithubName/your-repo-slug.git

      6. Push up your files

        git push -u origin main

      7. Initialize your Netlify Site

        netlify init

      • Login: netlify login or ntl login
      • Deploy: ntl deploy
      • All commands: netlify help

      Netlify command line tool

      VERSION netlify-cli/3.30.2 wsl-x64 node-v14.16.1

      USAGE $ netlify [COMMAND]

      TOPICS addons (Beta) Manage Netlify Add-ons completion (Beta) Generate shell completion script dev Local dev server env (Beta) Control environment variables for the current site functions Manage netlify functions lm Handle Netlify Large Media operations open Open settings for the site linked to the current folder plugins list installed plugins sites Handle various site operations status Print status information

      COMMANDS addons (Beta) Manage Netlify Add-ons api Run any Netlify API method build (Beta) Build on your local machine completion (Beta) Generate shell completion script deploy Create a new deploy from the contents of a folder dev Local dev server env (Beta) Control environment variables for the current site functions Manage netlify functions help Display help. To display help for a specific command run netlify help [command] init Configure continuous deployment for a new or existing site link Link a local repo or project folder to an existing site on Netlify lm Handle Netlify Large Media operations login Login to your Netlify account open Open settings for the site linked to the current folder plugins list installed plugins sites Handle various site operations status Print status information switch Switch your active Netlify account unlink Unlink a local folder from a Netlify site watch Watch for site deploy to finish

    • Continuous Deploy to Netlify

    • Deploy to Netlify Button

  • Functions

    • add a sample JS and Go function
    • setting Functions folder in app
    • setting Functions folder in netlify.toml
    • Event Triggered Functions
      • deploy-building, deploy-succeeded, deploy-failed, deploy-locked, deploy-unlocked
      • Env variables
    • AWS Lambda versions: AWS_LAMBDA_JS_RUNTIME nodejs >= 10.x
  • Defaults

    • HTTPS

    • Deploy Previews

      • Branch deploys
      • Split testing
        • split-test-activated, split-test-deactivated, split-test-modified
    • Distributed Deploys, Atomic Deploys, Instant Rollbacks

  • Post Processing

  • Netlify and Custom Domains

  • CDN Tips

About

Netlify in practice tutorials


Languages

Language:Shell 100.0%