OVH上的Symfony项目部署

时间:2015-11-10 12:39:16

标签: php symfony ovh

我正在尝试在OVH上部署Rest API。我用symfony2开发了它。

一切都在我的本地服务器上运行,但在OVH服务器上,我很难使用“composer update”。

Fisrt我修改了“.bashrc”添加“alias php5 ='php.ORIG.5_4 -c /usr/local/lib/php.ini-2'”

但是当我使用“php5 composer.phar update”时,它会返回:

String sql = "update C_partial SET IsExported = 'Y' where documentno = '"+doc+"'";

我不知道为什么buildBootstrap运行PHP 4

感谢您的帮助

1 个答案:

答案 0 :(得分:2)

If you want to have the same PHP version as in .ovhconfig in your SSH connection, you can use the .bashrc available on the OVH github: https://github.com/ovh/webhosting-ssh-bashrc

To apply it directly, you can use this code from your SSH connection

wget https://raw.githubusercontent.com/ovh/webhosting-ssh-bashrc/master/.bashrc -O $HOME/.bashrc
source $HOME/.bashrc