admin 管理员组文章数量: 1086019
I am facing issues, I have created a laravel command to migrate MySQL database to laravel cloud postgres, now where do I execute the command on laravel cloud?
It is not working in the command tab, the command is such that I have put options to identify which tables I need to move, based on prompts, for example the command that I created us, also how can I use tinker if required?
php artisan db:migrate-to-postgres --auto
and then we get a prompt if the table has record Table user already has 203 records. Do you want to skip this table?
and we prompt yes/no and the user has to answer it, where can I do this on laravel cloud?
Also is there a way I can SSH into the server, like we do on fe?
I am facing issues, I have created a laravel command to migrate MySQL database to laravel cloud postgres, now where do I execute the command on laravel cloud?
It is not working in the command tab, the command is such that I have put options to identify which tables I need to move, based on prompts, for example the command that I created us, also how can I use tinker if required?
php artisan db:migrate-to-postgres --auto
and then we get a prompt if the table has record Table user already has 203 records. Do you want to skip this table?
and we prompt yes/no and the user has to answer it, where can I do this on laravel cloud?
Also is there a way I can SSH into the server, like we do on fe?
Share Improve this question edited Mar 27 at 13:02 matiaslauriti 8,1464 gold badges36 silver badges47 bronze badges asked Mar 27 at 10:52 Ruturaj VaidyaRuturaj Vaidya 311 silver badge4 bronze badges1 Answer
Reset to default 0I believe laravel cloud doesn't accept prompts. You would need to create an option to force the prompt to answer yes, something like this.
php artisan db:migrate-to-postgres --auto --force
You would need to implement the --force
flag and skip any prompts with it.
Laravel cloud doesn't support ssh since this platform is aimed for users to not worry about the infrastructure.
Laravel cloud might not be the right platform for you if you still want to connect SSH. I recommend to stick to fe, or host it by yourself.
本文标签: Laravel Cloud How to run custom commandsStack Overflow
版权声明:本文标题:Laravel Cloud: How to run custom commands? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744095376a2532802.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论