我对dokku很新。我在DigitalOcean设置了一个新的dokku Droplet。我创建了一个小型静态网站,其中包含一个名为index.html的单个HTML文件的www目录。在根目录中,我添加了一个空的.nginx文件。当我试图推动时,我得到以下输出:
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (5/5), 356 bytes | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
-----> Cleaning up ...
remote: Cloning into '/tmp/tmp.FFdk4jjPhW'...
-----> Building dokkutest ...
remote: warning: You appear to have cloned an empty repository.
remote: done.
remote: HEAD is now at 0046a12... First implementation
-----> Unable to select a buildpack
To dokku@123.123.123.123:dokkutest
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@123.123.123.123:dokkutest'
对我可能做错了什么的想法?
答案 0 :(得分:3)
显然,默认情况下,nginx buildpack不再与dokku一起安装。我已经用这些步骤进行了设置:
https://florianheinemann.com/github/dokku/2014/11/17/Hosting-static-pages-on-Dokku.html