与Dokku的Dart项目。 失败推动主

我正尝试在DigitalOcean上与Dokku一起构buildDart项目。 以与Node.js项目相同的方式执行。 但是当把git推到Dokku的时候,我得到了错误。 你能帮我一下吗

$ git push dokku master Counting objects: 632, done. Delta compression using up to 4 threads. Compressing objects: 100% (605/605), done. Writing objects: 100% (632/632), 7.98 MiB | 74.00 KiB/s, done. Total 632 (delta 264), reused 0 (delta 0) -----> Building svpe ... Dart app detected -----> Welcome, this machine is: Linux e82c0d50ae50 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux -----> Installing Dart VM via URL http://commondatastorage.googleapis.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz remote: % Total % Received % Xferd Average Speed Time Time Time Current remote: Dload Upload Total Spent Left Speed remote: 100 127 100 127 0 0 426 0 --:--:-- --:--:-- --:--:-- 494 remote: remote: gzip: stdin: not in gzip format remote: tar: Child returned status 1 remote: tar: Error is not recoverable: exiting now To dokku@95.85.57.74:svpe ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'dokku@95.85.57.74:svpe' 

好像你在使用dart-editor-linux tarball时遇到了麻烦。 我认为它被阻止,或者你正在得到一个404页面,因为根据输出它似乎没有下载太多。 尝试进入机器,并做“wget http://commondatastorage.googleapis.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz ”,看看你得到什么。 如果它的一个小文件,打开它在VIM或纳米,看看它不是一些HTML。

我想,一旦你有了这个诊断,它会让你更进一步。 现在它无法解除档案,因为它无效。

我也有这个问题! 我的解决scheme是添加额外的交换空间到服务器。 我正在用Dokku使用512MB DigitalOcean液滴。

添加512MB交换文件

 su - dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 mkswap /swapfile1 chown root:root /swapfile1 chmod 0600 /swapfile1 swapon /swapfile1 

更新fstab

vi / etc / fstab

 /swapfile1 swap swap defaults 0 0 

free -mvalidation

我从这个页面得到了步骤