我在Fortrabbit上创建了应用程序,并为我的应用程序购买了一项服务。我推出了一些应用程序(Laravel)并创建了我的数据库。现在我想重新设置我的应用程序。我怎么能这么做?有人能帮忙吗?
发布于 2015-08-17 21:18:47
这个答案来自Fortrabbit支持:
sorry, it's not possible to reset the git repo (for now).
But you can push new code any time. You can also delete files when you ssh into you App.
If you want to start form the scratch, I suggest to spin up a new App.发布于 2015-08-17 16:12:58
这是我使用laravel 4在Fortrabbit中刷新完整DB的脚本。
DB::statement('SET FOREIGN_KEY_CHECKS=0');
$tables= DB::select('SHOW TABLES;');
foreach ($tables as $table) {
foreach ($table as $key=>$tableName) {
$tables= DB::statement("DROP TABLE $tableName;");
}
}
DB::statement('SET FOREIGN_KEY_CHECKS=1'); https://stackoverflow.com/questions/32047462
复制相似问题