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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

I 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