Skip to content

ModernAmusements/hardlait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardlait Website 2.9

Project commands

  1. Install dependencies.
npm install
  1. Run the project for local dev. This will start a hot-reloading server at localhost:3000.
npm run dev
npx netlify-cms-proxy-server
  1. Build the app for server-side rendered deployment. See more about Universal SSR in the Nuxt.js docs.
npm run build

# And to serve that deployment...
npm run start
  1. Generate a fully pre-rendered static site. See more in the docs.
npm run generate

Personalize setup

  1. Copy and change the .env-file

    • cp .example.env .env
    • Then change the values

  1. Install git-lfs on your computer and remove the # in the project's .gitattributes

  2. Setup Netlify LM by following these steps. (In short: netlify plugins:install netlify-lm-pluginnetlify lm:installnetlify loginnetlify linknetlify lm:setup → commit the .lfsconfig file.)

Troubleshooting

  • I added a CSS class, but it doesn't show

  • It is most likely purged by PurgeCSS, make sure it is whitelisted in purgeCSS in nuxt.config.js

  • I can’t log in to /admin on localhost and use my local git as CMS

  • Open up a new terminal and run npx netlify-cms-proxy-server, the login again.

  • I tried logging into/saving in Netlify CMS, but I can't

  • It may be that you haven't enabled Netlify Identity or setup the Git Gateway correctly, check the docs

  • I get Netlify emails but can't use them to login etc.

  • It is probably because the 'netlify-identity-widget' is only included in the /admin-page. Follow the advice here or enable the included email-templates’ paths in Netlify, under Site Settings > Identity > Emails and there you can set /static/emails/THE_TEMPLATE_NAME.html for each template. This will make sure to use the correct links inside the emails. Look at @audetcameron’s screenshot here.

  • "This repository is configured for Git LFS but 'git-lfs' was not found on your path."

  • Install git-lfs then run git lfs install in project root. Then to download the images, run git lfs pull. Or if you don't want to download the files/can't login to the lfs server, run git lfs install --skip-smudge instead.

  • I can’t get Git LFS to run correctly on Netlify

  • Make sure that you have in your Netlify build settings, set the environment variable GIT_LFS_ENABLED : true. Then also make sure that Netlify LM is setup as their docs specify.