I've been relentlessly trying to solve the following problem while deploying a webpage for a friend to ghpages using lektor. Yet i'm always getting an error similar to:
λ lektor deploy production
Deploying to production
Build cache: C:\Users\user\AppData\Roaming\Lektor\Cache\builds\6edf4ce4c35ce53180e6c7f3b6a081ae
Target: ghpages+https://user/user.github.io
Initialized empty Git repository in C:/Users/user/repos/repo/temp/.deploytempswkcet/scratch/.git/
Fetching origin
fatal: Couldn't find remote ref refs/heads/master
error: Could not fetch origin
warning: LF will be replaced by CRLF in about/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in blog/first-post/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in blog/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in projects/index.html.
The file will have its original line endings in your working directory.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
Done!
My configuration is currently set as follows:
[project]
name = repo
[servers.production]
target = ghpages+https://user/user.github.io
user = user
password = pass
Another attempt to solve this is typing the following:
lektor deplot --username user --password password production
rendering the following result:
Deploying to production
Build cache: C:\Users\Aperez\AppData\Roaming\Lektor\Cache\builds\6edf4ce4c35ce53180e6c7f3b6a081ae
Target: ghpages+https://johnmanruz/johnmanruz.github.io
Initialized empty Git repository in C:/Users/Aperez/repos/profejohnruz/temp/.deploytempcvsfya/scratch/.git/
fatal: bad config line 12 in file .git/config
fatal: bad config line 12 in file .git/config
fatal: bad config line 12 in file .git/config
fatal: bad config line 12 in file .git/config
Done!
If there is something wrong with my setup please let me know.
When looking at:
Fetching origin
fatal: Couldn't find remote ref refs/heads/master
You could try and push first a commit from your local repo to your remote.
Then try again a lektor deploy production