This repository was archived by the owner on Mar 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 196
Upload files only #286
Copy link
Copy link
Open
Description
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 "[email protected]:/var/www/frontend/releases/20220501183534" via rsync
[email protected]'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
Labels
No labels