Home
Support Forums

My Site is not updating online when I Git Push

My site name is zackartborges.netlify.app.

Since my first push none of my changes are being updated, although in the deploy logs it says the changes are published.

nuxt.config:

import colors from 'vuetify/es5/util/colors'
import Vue from 'vue'
import VueTypedJs from 'vue-typed-js'
Vue.use(VueTypedJs)

export default {
  // Target: https://go.nuxtjs.dev/config-target

  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    titleTemplate: '%s - nuxt-v2',
    title: 'Zack Borges',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
      { name: 'format-detection', content: 'telephone=no' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/man-user.png' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [ 'boxicons/css/boxicons.min.css'
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
  ],
target:'static', 
  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
    // https://go.nuxtjs.dev/vuetify
    '@nuxtjs/vuetify',
  ],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
  ],

  // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  vuetify: {
    customVariables: ['~/assets/variables.scss'],
    theme: {
      themes: {
        dark: {
          primary: "#0a192f",
          slate: "#8892b0",
          accent: colors.grey.darken3,
          secondary: "#8892b0",
          // info: colors.teal.lighten1,
          // warning: colors.amber.base,
          error: colors.deepOrange.accent4,
          success: colors.green.accent3
        }
      }
    }
  },

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    analyze: true,
    // or
    analyze: {
      analyzerMode: 'static'
    }
  }
}

Build Log:

12:31:11 PM: Build ready to start
12:31:13 PM: build-image version: 653805ca4a64301556e56dc4b321ef8fc20cbb7c
12:31:13 PM: build-image tag: v3.8.2
12:31:13 PM: buildbot version: 105a883ca1b8c1097a91020caa63318049b08b79
12:31:13 PM: Fetching cached dependencies
12:31:13 PM: Starting to download cache of 105.4MB
12:31:16 PM: Finished downloading cache in 3.106169747s
12:31:16 PM: Starting to extract cache
12:31:20 PM: Finished extracting cache in 4.017236542s
12:31:20 PM: Finished fetching cache in 7.149546482s
12:31:20 PM: Starting to prepare the repo for build
12:31:20 PM: Preparing Git Reference refs/heads/main
12:31:21 PM: Parsing package.json dependencies
12:31:21 PM: Starting build script
12:31:22 PM: Installing dependencies
12:31:22 PM: Python version set to 2.7
12:31:22 PM: Started restoring cached node version
12:31:25 PM: Finished restoring cached node version
12:31:25 PM: v12.18.0 is already installed.
12:31:26 PM: Now using node v12.18.0 (npm v6.14.4)
12:31:26 PM: Started restoring cached build plugins
12:31:26 PM: Finished restoring cached build plugins
12:31:26 PM: Attempting ruby version 2.7.2, read from environment
12:31:27 PM: Using ruby version 2.7.2
12:31:28 PM: Using PHP version 5.6
12:31:28 PM: Started restoring cached node modules
12:31:28 PM: Finished restoring cached node modules
12:31:28 PM: Started restoring cached go cache
12:31:28 PM: Finished restoring cached go cache
12:31:28 PM: go version go1.14.4 linux/amd64
12:31:28 PM: go version go1.14.4 linux/amd64
12:31:28 PM: Installing missing commands
12:31:28 PM: Verify run directory
12:31:29 PM: ​
12:31:29 PM: ────────────────────────────────────────────────────────────────
12:31:29 PM:   Netlify Build                                                 
12:31:29 PM: ────────────────────────────────────────────────────────────────
12:31:29 PM: ​
12:31:29 PM: ❯ Version
12:31:29 PM:   @netlify/build 17.4.0
12:31:29 PM: ​
12:31:29 PM: ❯ Flags
12:31:29 PM:   deployId: 6104294e3a435000077b6f69
12:31:29 PM: ​
12:31:29 PM: ❯ Current directory
12:31:29 PM:   /opt/build/repo
12:31:29 PM: ​
12:31:29 PM: ❯ Config file
12:31:29 PM:   No config file was defined: using default values.
12:31:29 PM: ​
12:31:29 PM: ❯ Context
12:31:29 PM:   production
12:31:29 PM: ​
12:31:29 PM: ────────────────────────────────────────────────────────────────
12:31:29 PM:   1. Build command from Netlify app                             
12:31:29 PM: ────────────────────────────────────────────────────────────────
12:31:29 PM: ​
12:31:29 PM: $ npm run build
12:31:29 PM: > nuxt-v2@1.0.0 build /opt/build/repo
12:31:29 PM: > nuxt build
12:32:28 PM: ​
12:32:28 PM: (build.command completed in 59.5s)
12:32:28 PM: ​
12:32:28 PM: ────────────────────────────────────────────────────────────────
12:32:28 PM:   2. Deploy site                                                
12:32:28 PM: ────────────────────────────────────────────────────────────────
12:32:28 PM: ​
12:32:28 PM: Starting to deploy site from 'dist'
12:32:28 PM: Creating deploy tree 
12:32:28 PM: Creating deploy upload records
12:32:28 PM: 0 new files to upload
12:32:28 PM: 0 new functions to upload
12:32:28 PM: Site deploy was successfully initiated
12:32:28 PM: ​
12:32:28 PM: (Deploy site completed in 129ms)
12:32:28 PM: ​
12:32:28 PM: ────────────────────────────────────────────────────────────────
12:32:28 PM:   Netlify Build Complete                                        
12:32:28 PM: ────────────────────────────────────────────────────────────────
12:32:28 PM: ​
12:32:28 PM: (Netlify Build completed in 59.7s)
12:32:28 PM: Starting post processing
12:32:28 PM: Post processing - HTML
12:32:28 PM: Post processing - header rules
12:32:28 PM: Post processing - redirect rules
12:32:28 PM: Post processing done
12:32:29 PM: Caching artifacts
12:32:29 PM: Started saving node modules
12:32:29 PM: Finished saving node modules
12:32:29 PM: Started saving build plugins
12:32:29 PM: Finished saving build plugins
12:32:29 PM: Started saving pip cache
12:32:29 PM: Site is live ✨
12:32:29 PM: Finished saving pip cache
12:32:29 PM: Started saving emacs cask dependencies
12:32:29 PM: Finished saving emacs cask dependencies
12:32:29 PM: Started saving maven dependencies
12:32:29 PM: Finished saving maven dependencies
12:32:29 PM: Started saving boot dependencies
12:32:29 PM: Finished saving boot dependencies
12:32:29 PM: Started saving rust rustup cache
12:32:29 PM: Finished saving rust rustup cache
12:32:29 PM: Started saving go dependencies
12:32:29 PM: Finished saving go dependencies
12:32:29 PM: Build script success
12:32:46 PM: Finished processing build request in 1m33.460701817s

Not sure what build settings I should use in nuxt.config build:,

But I believe that is the problem.

package.json :

{
  "name": "nuxt-v2",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate"
  },
  "dependencies": {
    "boxicons": "^2.0.8",
    "core-js": "^3.15.1",
    "nuxt": "^2.15.7",
    "vue-typed-js": "^0.1.2",
    "vue-typed-text": "^1.0.5",
    "vuetify": "^2.5.5"
  },
  "devDependencies": {
    "@nuxtjs/vuetify": "^1.12.1"
  }
}

Welcome to the forums @zackartborges

You have your build command set to npm run build.

Change it to npm run generate. This generates your site in dist. You then need to make sure dist is set as your publish path.

Let us know how you get on.

Got it! That was the issue. Thanks so much!