擅长:python、mysql、java
<p>任何错误消息,如“../postinstall failed with return code”(postinstall失败,返回代码)都表示posinstall脚本有问题。在</p>
<p>为了在dotCloud上轻松调试安装后执行,可以执行以下操作:</p>
<p>假设你的应用程序是“拉面”,你的服务是“www”。在</p>
<pre><code>$ dotcloud -A ramen run www
> ~/current/postinstall
</code></pre>
<p>它将重新执行postinstall,但这次是从您的会话执行的,因此您可以轻松地更新postinstall代码并重新运行它,而不必一次又一次地推送。在</p>
<p>一旦找到了根本原因,就在本地修复它并重新发布应用程序。在</p>