Git Product home page Git Product logo

Comments (6)

cgsmith avatar cgsmith commented on July 4, 2024

@sand4rt How did you create the distribution file?

from ftp-deployer.

sand4rt avatar sand4rt commented on July 4, 2024

@cgsmith I'm using another package called ftp-deploy that is causing this error: simonh1000/ftp-deploy#116. Let me know if you want to know more.

from ftp-deployer.

cgsmith avatar cgsmith commented on July 4, 2024

I'm curious how you generated the distribution file? Was this bult separately or downloaded elsewhere? Trying to test a few things locally.

from ftp-deployer.

sand4rt avatar sand4rt commented on July 4, 2024

You mean the dist folder? This is generated by running npm install and after that run: npm run build.

  1. npm install installs the ncc command
  2. npm run build runs ncc build index.js
  3. In the index.js file, i import a library called ftp-deploy (which has a pagent.exe included)

Noting is downloaded from elsewhere (only from npm through the packages.json)

from ftp-deployer.

sand4rt avatar sand4rt commented on July 4, 2024

This is how you can test the deployment:

  1. create a test-action.js in the root of the git repository
  2. run npm install && npm run build
  3. Paste the code below in the created test-action.js
  4. Change the host, user, password properties
  5. run node test-action.js
const core = require('@actions/core');
const FtpDeploy = require('ftp-deploy');

core.info('Deploying...');

new FtpDeploy()
    .deploy({
        sftp: true,
        host: 'test.rebex.net',
        port: 22,
        user: 'demo',
        password: 'password',
        remoteRoot: './',
        localRoot: 'dist',
        include:  ['dist'],
        exclude: ['node_modules/**', 'node_modules/**/.*', '.git/**']
    }) 
    .then(response => core.info('Deploy finished:', response))
    .catch(error => core.error(error));

from ftp-deployer.

sand4rt avatar sand4rt commented on July 4, 2024

Does this still persist after v1.7?

from ftp-deployer.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.