![]() vessel test tests/Unit/SpecificTest.php You can use any commands or flags you would normally use with phpunit as well./vessel test -filter= Vessel has the test command to help us out here. We can use Vessel to run our tests as well! This is especially useful if you test with your database or SQLite. # Here we kill the container with ID 0770015f9257 vessel start), you can find the ID of the running container and "kill" it: # Find the running instance of the vessel/app container, However, if ctrl+c doesn't work (which can happen if you start a worker before running. To stop a queue worker, you can use ctrl+c as usual. vessel artisan queue:work -tries=3 -sleep=3 # Sleep 3 seconds before polling for more jobs # Give jobs 3 tries before deleting/marking as failed You can run them like any other artisan commands ( Laravel queue worker docs here): # Just like from Laravel docs Queue workers are just another artisan command. Additionally, all commands are run relative to your project root directory (the same directory that your Laravel application resides). ![]() Just use the php command: # List php CLI modules:Īll commands and flags are passed along to PHP. vessel artisan migrate -seedĪd-hoc PHP commands can be run within Vessel. ![]() For example, to run migrations and seed the database, use. vessel art # "art" is a shortcut to "artisan"Īll commands and flags are passed along to Artisan. We can use artisan or art for short./vessel artisan ![]() In those cases, we'll need Vessel to run the artisan commands. vessel composer require aws/aws-sdk-phpĪrtisan commands can be run directly on your host machine as well, except when they interact with the cache or database. vessel comp # "comp" is a shortcut to "composer"įor example, to install the AWS SDK, run. You can use vessel's composer command or comp command for short. Often you can run Composer directly as usual, but you can run them within Vessel as well. Here's how to run your everyday commands. Vessel aims to make your everyday development easy, as if you're not using Docker at all. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |