我有一个非常恼人的问题,Bamboo如何处理激活器(或我的ssh?),当启动并且数据库有进化时,它只是将其视为失败并退出ssh,所以我无法点击运行按钮进化脚本。
我在(function ($) {
// make the ajax request
$.getJSON('http://www.domain-a.de/external-search.js?jsoncallback=?', function(data) {
// append the form to the container
$('#embedded_search').append(data);
$('#embedded_search form').attr('action','');
myUrl = 'http://www.domain-a.de/get-form-values?jsoncallback=?'
var frm = $('#embedded_search form');
// click on submit button
frm.submit(function (ev) {
$.getJSON( myUrl )
.done(function( json ) {
console.log( "JSON Data: " + json );
})
.fail(function( jqxhr, textStatus, error ) {
var err = textStatus + ", " + error;
console.log( "Request Failed: " + err );
});
});
});
})(jQuery);
文件中使用application.conf
启用了自动申请进化,并且在启动命令中我放了play.evolutions.autoApply=true
没有运气,任何人都可以帮助如何让竹子相信进化是好,让我的激活器运行?
我的ci-start-all.sh:
play.evolutions.db.default.autoApply
和我的play-start.sh:
#!/bin/sh
set -e
. ./ci/ci-set-env.sh
./ci/play-start.sh
set +e
我的日志文件:
#!/bin/sh
set -e
echo
echo '****** PLAY START *******'
echo
nohup ./target/universal/stage/bin/webapp -Dplay.evolutions.db.default.autoApply=true -Dhttp.port=$PLAY_PORT -Dconfig.file=conf/cloud.conf &>play.out &
sleep 10
#look for process listening to port TODO: replace with wget and a url
pid=`lsof -Pi tcp:$PLAY_PORT | grep LISTEN | awk '{print $2}'`
if [ $pid > 0 ];
then
echo [success] Play! started
else
echo ERROR: Play! did not start successfully
#output logfile
cat play.out
exit 1
fi
set +e
答案 0 :(得分:0)
有时当它的破坏性进化它会停止时,我只是在application.conf
内添加以下行以使其运行你需要从配置设置值并强制进化但要小心,你不要需要丢失你的数据,如果你刚刚处于开发阶段并且它可以做到这一点,否则保持play.evolutions.autoApplyDowns
为假,或者根本不把它放在保持默认值(对生产来说是假的)< / p>
# Evolutions
# ~~~~~
# You can disable evolutions if needed
# play.evolutions.enabled=true
# You can disable evolutions for a specific datasource if necessary
play.evolutions.db.default.enabled=true
# this is safe to use if there is no "DOWNS" otherwise it will fail to start
play.evolutions.autoApply = true
# BECAREFUL ITS DANGROUS DON'T USE IN PRODUCTION
play.evolutions.autoApplyDowns = true