Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

[FEATURE] Add support for Netlify Deployment #283

Open
RoneoOrg opened this issue Sep 15, 2021 · 2 comments
Open

[FEATURE] Add support for Netlify Deployment #283

RoneoOrg opened this issue Sep 15, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@RoneoOrg
Copy link

The feature "Deploy to Netlify" could be a nice tool to ease the theme adoption.

I gave a try but encountered this error:

10:55:57 PM: Build ready to start
10:55:59 PM: build-image version: fa439ad1ab9393b2c0d449d8d7c033927683f4b0
10:55:59 PM: build-image tag: v4.3.0
10:55:59 PM: buildbot version: e99637385725adf30662bad8cf7d70d9f3623653
10:55:59 PM: Fetching cached dependencies
10:55:59 PM: Failed to fetch cache, continuing with build
10:55:59 PM: Starting to prepare the repo for build
10:56:00 PM: No cached dependencies found. Cloning fresh repo
10:56:00 PM: git clone https://github.com/sunt-programator/CodeIT
10:56:02 PM: Preparing Git Reference refs/heads/master
10:56:03 PM: Parsing package.json dependencies
10:56:03 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'dist' versus 'dist/' in the Netlify UI
10:56:04 PM: Starting build script
10:56:04 PM: Installing dependencies
10:56:04 PM: Python version set to 2.7
10:56:04 PM: Downloading and installing node v16.9.1...
10:56:05 PM: Downloading https://nodejs.org/dist/v16.9.1/node-v16.9.1-linux-x64.tar.xz...
10:56:05 PM: Computing checksum with sha256sum
10:56:05 PM: Checksums matched!
10:56:08 PM: Now using node v16.9.1 (npm v7.21.1)
10:56:08 PM: Started restoring cached build plugins
10:56:08 PM: Finished restoring cached build plugins
10:56:08 PM: Attempting ruby version 2.7.2, read from environment
10:56:09 PM: Using ruby version 2.7.2
10:56:09 PM: Using PHP version 8.0
10:56:09 PM: Started restoring cached node modules
10:56:09 PM: Finished restoring cached node modules
10:56:10 PM: Installing NPM modules using NPM version 7.21.1
10:56:16 PM: npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
10:56:17 PM: npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
10:56:28 PM: npm ERR! code ENOENT
10:56:28 PM: npm ERR! syscall chmod
10:56:28 PM: npm ERR! path /opt/build/repo/node_modules/longest/lib/cli.js
10:56:28 PM: npm ERR! errno -2
10:56:28 PM: npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/build/repo/node_modules/longest/lib/cli.js'
10:56:28 PM: npm ERR! enoent This is related to npm not being able to find a file.
10:56:28 PM: npm ERR! enoent
10:56:28 PM: npm ERR! A complete log of this run can be found in:
10:56:28 PM: npm ERR!     /opt/buildhome/.npm/_logs/2021-09-15T20_56_28_510Z-debug.log
10:56:28 PM: Error during NPM install
10:56:28 PM: Build was terminated: Build script returned non-zero exit code: 1
10:56:28 PM: Creating deploy upload records
10:56:28 PM: Failing build: Failed to build site
10:56:28 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
10:56:28 PM: Finished processing build request in 29.188308691s

Any hint?

@RoneoOrg RoneoOrg added the enhancement New feature or request label Sep 15, 2021
@victor-pogor
Copy link
Member

victor-pogor commented Sep 20, 2021

Hi @RoneoOrg,

I will look at this. I didn't work yet with Nelify and this will be a good source for me to implement this: Host on Netlify | Hugo.

@RoneoOrg
Copy link
Author

RoneoOrg commented Sep 22, 2021

I implemented this feature lately in BeautifulHugo, (see halogenica/beautifulhugo@8b3cc02) sometime it works with just a few lines.
Netlify's forum is a good place to find answers, nice and helpful Support team, super active community

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants