RuntimeError,在Heroku上启动Rails应用程序时缺少secret_key_base。
我已经将这个秘密添加为ENV var并查看日志,感觉Heroku设置得太迟了。
有类似的事发生在你身上吗?您如何建议接近这个?
BsPatch.test();
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator;
final File oldApk = new File(Environment.getExternalStorageDirectory(), "appV1.apk");
final File destApk = new File(Environment.getExternalStorageDirectory(), "newApp.apk");
final File patch = new File(Environment.getExternalStorageDirectory(), "path.apk");
BsPatch.patchSync(oldApk, patch, destApk);
答案 0 :(得分:2)
通过从 var obj = {
'prop': 'value',
'nested.prop1': 'value1',
'nested.prop2': 'value2',
'renested.prop1': 'value1',
'renested.prop2': 'value2',
'nested.prop3': 'value3',
}
function deconcatProp(obj){
var idx;
var key;
for(var prop in obj){
if((idx = prop.indexOf('.')) > 0){
key = prop.substring(0, idx);
if(!obj[key]) {
obj[key] = {
};
}
obj[key][prop.substring(idx + 1, prop.length)] = obj[prop];
delete obj[prop];
}
}
}
deconcatProp(obj);
移除config/secrets.yml
来解决此问题。