Static GitHub Issues

[219] Deploy to Netlify

prev: Cannot find module 'reduce-function-call'
next: custom filenames with [hash] option issue

Has anyone tried to deploy to Netlify yet? I am trying to use the starter template and it seems to deploy correctly but I get a page not found when trying to view the site. Do I need to set a public folder and if so what?

Netlify options:

Build Command: npm run build Public folder: left blank

Log:

12:58:13 PM: Build started 12:58:13 PM: Fetching cached dependencies 12:58:13 PM: Expected build cache - but failed to find it 12:58:13 PM: No cached dependencies found. Cloning fresh repo 12:58:13 PM: git clone git@github.com:abelovic/website-nuxt 12:58:15 PM: git remote rm origin 12:58:15 PM: Preparing Git Reference refs/heads/master 12:58:16 PM: Building site 12:58:16 PM: Running build command 12:58:17 PM: Downloading and installing node v6.9.5... 12:58:17 PM: Downloading https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.xz... 12:58:18 PM: 0.0% 12:58:18 PM: 12:58:18 PM: 1.1% 12:58:18 PM: ### 4 12:58:18 PM: .7% 12:58:18 PM: ############## 19. 12:58:18 PM: 6% 12:58:18 PM: ############################## 4 12:58:18 PM: 2.1% 12:58:19 PM: ################################################### 71.9% 12:58:19 PM: ################################################################### 12:58:19 PM: 94.3% 12:58:19 PM: ########################################################## 12:58:19 PM: ############## 100.0% 12:58:19 PM: 12:58:19 PM: Computing checksum with sha256sum 12:58:19 PM: Checksums matched! 12:58:20 PM: Now using node v6.9.5 (npm v3.10.10) 12:58:20 PM: Using version v6.9.5 of node 12:58:21 PM: Using /opt/buildhome/.rvm/gems/ruby-2.1.2 12:58:21 PM: Installing yarn at version 0.18.1 12:58:21 PM: Installing Yarn! 12:58:21 PM: > /opt/buildhome/.yarn already exists, possibly from a past Yarn install.

Remove it (rm -rf /opt/buildhome/.yarn) and run this script again. 12:58:21 PM: Installing NPM modules using Yarn version 0.18.1 12:58:22 PM: yarn install v0.18.1 12:58:23 PM: 1/4 Resolving packages... 12:58:23 PM: 2/4 Fetching packages... 12:58:35 PM: warning fsevents@1.0.17: The platform "linux" is incompatible with this module. 12:58:36 PM: info "fsevents@1.0.17" is an optional dependency and failed compatibility check. Excluding it from installation. 12:58:36 PM: 3/4 Linking dependencies... 12:58:43 PM: 4/4 Building fresh packages... 12:58:43 PM: Done in 20.86s. 12:58:43 PM: NPM modules installed using Yarn 12:58:44 PM: yarn build v0.18.1 12:58:44 PM: $ nuxt build 12:58:45 PM: nuxt Building... 12:58:45 PM: Wed, 08 Feb 2017 18:58:45 GMT nuxt:build App root: /opt/build/repo 12:58:45 PM: Wed, 08 Feb 2017 18:58:45 GMT nuxt:build Generating .nuxt/ files... 12:58:45 PM: Wed, 08 Feb 2017 18:58:45 GMT nuxt:build Generating routes... 12:58:45 PM: Wed, 08 Feb 2017 18:58:45 GMT nuxt:build Generating files... 12:58:45 PM: Wed, 08 Feb 2017 18:58:45 GMT nuxt:build Building files... 12:58:52 PM: nuxt:build:client Hash: 8f16e8f6ade83dd08d48 Version: webpack 2.2.1 Time: 7141ms Asset Size Chunks Chunk Names img/logo.ddcb767.png 6.54 kB emitted 0.nuxt.bundle.js 846 bytes 0 emitted 1.nuxt.bundle.js 872 bytes 1 emitted 2.nuxt.bundle.js 548 bytes 2 emitted nuxt.bundle.js 39.6 kB 3 emitted app vendor.bundle.js 83.5 kB 4 emitted vendor style.css 1.31 kB 3 emitted app style.css.map 86 bytes 3 emitted app 12:58:52 PM: nuxt:build:server Hash: 6a306cb2f4c5dec3b684 Version: webpack 2.2.1 Time: 7126ms Asset Size Chunks Chunk Names img/logo.ddcb767.png 6.54 kB emitted server-bundle.js 124 kB 0 emitted main 12:58:52 PM: nuxt Building done 12:58:53 PM: Done in 8.89s. 12:58:53 PM: Cached NPM modules 12:58:53 PM: Saved Yarn cache 12:58:53 PM: Cleaning up docker container 12:58:53 PM: Deploying to CDN 12:58:53 PM: Starting deploy of directory /mnt/build-work/1486580293763719917/repo 12:58:54 PM: Going to deploy the 0 required files 12:58:54 PM: Finished deploying directory /mnt/build-work/1486580293763719917/repo 12:58:54 PM: Finished building and deploying site in 40.822541284s 12:58:54 PM: Compressing dependencies 12:59:01 PM: Uploading dependency cache 12:58:57 PM: Starting post processing 12:59:01 PM: Post processing done 12:59:02 PM: Site is live 12:59:04 PM: Finished uploading cache 12:59:05 PM: Finished processing build request

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c189">#c189</a>)</em></sub></div>