D
D
Dimka52018-09-05 18:45:37
Capistrano
Dimka5, 2018-09-05 18:45:37

How to use Capistrano 3 without a remote repository?

I want to deploy a Windows Node.JS application to a test server on a local network with CentOS using Capistrano 3. I don't understand what link I should put in this line if I'm NOT using GitHub, Bitbucket, etc. for the project. but I just use Git

# файл config/deploy/testserver.rb
set :repo_url, "[email protected]:me/my_repo.git"

If without it, then during deployment, one of the script commands looks like this, the
01 git ls-remote HEAD
console displays a message
01 fatal: 'HEAD' does not appear to be a git repository

If I indicate
# файл config/deploy/testserver.rb
set :repo_url, "."

the command will change to
01 git ls-remote . HEAD
and the message to
01 fatal: '.' does not appear to be a git repository

Also provided a link like
# файл config/deploy/testserver.rb
set :repo_url, "file:///D:/myproject"

That is, I cannot without specifying the repository, and specifying the local repository (".") does not work either. What am I doing wrong? I’m not very friendly with English, but I googled a couple of dozen ways, none of them helped, I realized that I don’t understand myself.
How can I use a local repository? If this is done only with a version control server, how can you organize your own, like GitLab does today, or through something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-09-05
@Dimka5

The repository must be accessible over the network: Capistrano runs a code fetch on a remote machine.
So either configure your local git to provide network access (the smartest option), or use hacks like https://github.com/ekho/capistrano-scm-local/blob/...

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question