【发布时间】:2016-01-12 16:30:15
【问题描述】:
我正在开发一个 symfony 应用程序,最近由于登录、注册等工作正常,我尝试将我的工作部署到服务器。
在本地一切正常!请注意,尽管我在本地主机上使用 RDS 数据库。我没有使用开发数据库。
最初它抱怨我在服务器上的 PHP 版本,所以我将它更新到 5.6 并重新部署,现在我的日志中出现以下内容!
Creating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000] [2002] Connection refused
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command:
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000] [2002] Connection refused
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
(Executor::NonZeroExitStatus)
[2016-01-12T16:22:49.583Z] ERROR [2219] : Command CMD-AppDeploy failed!
任何更多信息只需要询问病态更新!任何帮助将不胜感激!
【问题讨论】: