2017-02-04 5 views
0

lektorを使ってghpagesに友達のウェブページを展開している間、次の問題を解決しようとしてきました。Windows上で "ghpages + https" lektorメソッドを使用してデプロイする方法はありますか?遅いエラーを取得する:

λ 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! 

次のように私の設定は、現在設定されている

[project] 
name = repo 

[servers.production] 
target = ghpages+https://user/user.github.io 
user = user 
password = pass 

これを解決するための別の試み次のように入力されています

しかし、私はいつものようなエラーを取得しています
lektor deplot --username user --password password production 

以下のレンダリングt:

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! 

セットアップに問題がある場合は、お知らせください。見ているとき

+0

私は致命的な見ていない:最初にファイル.git/configに悪い設定行12:12行目では何ですか? – VonC

答えて

1

Fetching origin 
    fatal: Couldn't find remote ref refs/heads/master 

あなたは試してみて、あなたのリモートにあなたの地元のレポからコミットする最初のプッシュすることができます。
その後、もう一度試してlektor deploy production

+0

最初のエラーが正しく解決されました。残りの唯一の問題は2番目のエラー 'ユーザー名を読み取れませんでした'です。 –

+0

@AperezCあなたはGitのどのバージョンを使用していますか? 'git config -l'と入力すると、' credential.helper'について何か表示されますか? – VonC

+0

いいえ、そのようなものではありません。私はインストールされているものとは独立して動作するので、lektorはコード内に組み込みgitを持っていると思います。 –

関連する問題