The most important thing with this is to figure out why it is stuck. Most of the times this is because there is an interactive command that is asking for verification.
A good example is if you run "php artisan migrate" without the --force flag. This will trigger an interactive question "Are you sure?" which the Ploi system does not read.
If you've figured out why it is deploying forever (stuck) you can reset the deployment status inside the repository tab and try it again.