Skip to content

Commit b4d6a4f

Browse files
committed
rename native:serve to native:run
1 parent d751a09 commit b4d6a4f

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

resources/views/docs/desktop/2/getting-started/debugging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This means that while some issues can be solved within NativePHP it's also very
1919
### The layers
2020

2121
- Your application, built on Laravel, using your local installations of PHP & Node.
22-
- NativePHP's development tools (`native:serve` and `native:build`) manage the Electron/Tauri build processes - this is
22+
- NativePHP's development tools (`native:run` and `native:build`) manage the Electron/Tauri build processes - this is
2323
what creates your Application Bundle.
2424
- NativePHP moves the appropriate version of a statically-compiled binary of PHP into your application's bundle - when
2525
your app boots, it's _this_ version of PHP that is being used to execute your PHP code, not your system's version of
@@ -51,7 +51,7 @@ runs in either a dev build or a prod build.
5151
Having a clear understanding about what context you're in when issues occur will help you to solve the problem faster.
5252

5353
### Verbose output
54-
Use `-v`, `-vv` or `-vvv` when running `native:serve` or `native:build` as this will provide more detail as to what's
54+
Use `-v`, `-vv` or `-vvv` when running `native:run` or `native:build` as this will provide more detail as to what's
5555
happening at each stage of a process.
5656

5757
### Check the logs

resources/views/docs/desktop/2/getting-started/development.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ order: 300
66
## Development
77

88
```shell
9-
php artisan native:serve
9+
php artisan native:run
1010
```
1111

1212
NativePHP isn't prescriptive about how you develop your application. You can build it in the way you're most comfortable
1313
and familiar with, just as if you were building a traditional web application.
1414

1515
The only difference comes in the feedback cycle. Instead of switching to and refreshing your browser, you'll need to
16-
be serving your application using `php artisan native:serve` and refreshing (and in some cases restarting) your
16+
be serving your application using `php artisan native:run` and refreshing (and in some cases restarting) your
1717
application to see changes.
1818

1919
This is known as 'running a dev build'.
2020

21-
### What does the `native:serve` command do?
21+
### What does the `native:run` command do?
2222

23-
The `native:serve` command runs the Electron/Tauri 'debug build' commands, which build your application with various
23+
The `native:run` command runs the Electron 'debug build' commands, which build your application with various
2424
debug options set to help make debugging easier, such as allowing you to show the Dev Tools in the embedded web view.
2525

2626
It also keeps the connection to the terminal open so you can see and inspect useful output from your app, such as logs,
@@ -34,7 +34,7 @@ A major part of the build process, even for debug builds, involves _copying_ you
3434
build environment. This means that changes you make to your application code _will not_ be reflected in your running
3535
application until you restart it.
3636

37-
You can stop the `native:serve` command by pressing `Ctrl-C` on your keyboard in the terminal window it's running in.
37+
You can stop the `native:run` command by pressing `Ctrl-C` on your keyboard in the terminal window it's running in.
3838
It will also terminate when you quit your application.
3939

4040
## Hot Reloading
@@ -49,7 +49,7 @@ If you're using Vite, hot reloading will just work inside your app as long as yo
4949

5050
You can do this easily in Blade using the `@@vite` directive.
5151

52-
Then, in a separate terminal session to your `php artisan native:serve`, from the root folder of your application, run:
52+
Then, in a separate terminal session to your `php artisan native:run`, from the root folder of your application, run:
5353

5454
```shell
5555
npm run dev
@@ -61,7 +61,7 @@ Which files trigger reloads will depend on your Vite configuration.
6161

6262
### `composer native:dev`
6363

64-
You may find the `native:dev` script convenient. By default, it is setup to run both `native:serve` and `npm run dev`
64+
You may find the `native:dev` script convenient. By default, it is setup to run both `native:run` and `npm run dev`
6565
concurrently in a single command:
6666

6767
```shell
@@ -99,7 +99,7 @@ For more details, see the [Databases](/docs/digging-deeper/databases) section.
9999

100100
## App Icon
101101

102-
The `native:serve` and `native:build` commands look for the following icon files when building your application:
102+
The `native:run` and `native:build` commands look for the following icon files when building your application:
103103

104104
- `public/icon.png` - your main icon, used on the Desktop, Dock and app switcher.
105105
- `public/icon.ico` - if it exists, it is used as an icon file for Windows (optional).

resources/views/docs/desktop/2/getting-started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ which need addressing before you can run your app natively, and may be trickier
6868
Once you're ready:
6969

7070
```shell
71-
php artisan native:serve
71+
php artisan native:run
7272
```
7373

7474
And that's it! You should now see your Laravel application running in a native desktop window. 🎉

resources/views/docs/desktop/2/getting-started/upgrade-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ v2 drops support for macOS **_Catalina_** and **_Big Sur_**. This change comes f
5454

5555
## Renamed `native:serve` command
5656

57-
The `artisan native:serve` command has been renamed to `artisan native:dev` for better symmetry with the mobile package.
58-
Please update the `composer native:dev` command to use the new name.
57+
The `artisan native:serve` command has been renamed to `artisan native:run` for better symmetry with the mobile package.
58+
Please update the `composer native:dev` script to reference the new run command.
5959

6060
## Security defaults
6161

0 commit comments

Comments
 (0)