我有一个symfony 2项目,我试图在OpenShift在线启动.我根据需要创建了目录,并且在本地运行symfony非常完美.
但是,当我部署到我的OpenShift应用程序时,deploy和post_deploy action_hooks不会运行.我甚至没有看到他们在文档中提到的git push上的输出.
我还应该注意,我可以在应用程序中创建一个test.sh,它将运行完全相同的代码并按预期工作.
任何帮助将不胜感激,我已经与支持人员一起放了多张票,没有运气.
以下是目录结构屏幕截图的链接:
https://www.dropbox.com/s/oup9fa3rfgw43wy/Screenshot%202014-05-15%2019.03.21.png
下面是我的post_deploy钩子:
#!/bin/bash
# This deploy hook gets executed after dependencies are resolved and the
# build hook has been run but before the application has been started back
# up again. This script gets executed directly, so it could be python, php,
# ruby, etc.
# set the location for composer home to the data dir
export COMPOSER_HOME="$OPENSHIFT_DATA_DIR/.composer"
# check if composer exists in data dir
if [ ! -f "$OPENSHIFT_DATA_DIR/composer.phar" …Run Code Online (Sandbox Code Playgroud) 在Swift 3中构建命令行工具时,我需要提示用户输入键盘.我如何向用户询问他们的输入(例如用户名)?