Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sail run command #770

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Add sail run command #770

merged 2 commits into from
Jan 24, 2025

Conversation

rojtjo
Copy link
Contributor

@rojtjo rojtjo commented Jan 23, 2025

This PR adds the sail run command which allows us to run commands directly in the container.

I often create bash scripts in my projects in order to run a series of artisan command (or any command for that matter). In order to run these commands we currently have to do the following:

Open bash in the container:

$ sail bash

Then within the container:

$ ./some/path/to/a/command

With the sail run command we could just call it at once:

$ sail run some/path/to/a/command

PS: I considered expanding the sail bin command at first, but figured it would be safer to just add a new command instead. Please let me know if anyone feels different about this!

@taylorotwell taylorotwell merged commit fe1a4ad into laravel:1.x Jan 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants