Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Upload files only #286

@jonaaix

Description

@jonaaix

I'm trying to just upload my local release build, but it seems shipit always expects any git repo. How can I disable this?

module.exports = (shipit) => {
   require('shipit-deploy')(shipit);

   shipit.initConfig({
      prod: {
         servers: [
            {
               host: 'shop.com',
               user: 'shop',
            },
         ],
         repositoryUrl: '',
         keepReleases: 10,
         deployTo: '/var/www/frontend',
         rsyncFrom: './dist/frontend',
         copy: false
      },
   });
};

Output:

...
Release path created.
Copy project to remote servers.
"copy" method is deprecated, please use "copyToRemote", "copyFromRemote", "scpCopyToRemote" or "scpCopyFromRemote". It will break in v5.0.0.
Copy "/Users/shop/repositories/frontend/dist/frontend/" to "shop@shop.com:/var/www/frontend/releases/20220501183534" via rsync
shop@shop.com's password:
Finished copy.
Setting current revision and creating revision file.
Running "git rev-parse master" on local.
@ fatal: not a git repository (or any of the parent directories): .git
'deploy:update' errored after 9.19 s
Error: Command failed: git rev-parse master
fatal: not a git repository (or any of the parent directories): .git

    at ChildProcess.exithandler (node:child_process:397:12)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions