Skip to content

Commit c760436

Browse files
committed
docs(header-links): build a standalone application
1 parent b470f41 commit c760436

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-a-standalone-application.md

+5
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ We use [`humbug/box`](https://github.com/box-project/box) to provide fast applic
2424

2525
Please check the box documentation to understand all options: [github.com/box-project/box/blob/master/doc/configuration.md](https://github.com/box-project/box/blob/master/doc/configuration.md).
2626

27+
<a name="non-interactive-build"></a>
2728
## Non-interactive build
2829

2930
When you build you get asked about build version, in case you want to skip this step you can provide the build version as an option:
3031
```bash
3132
php your-app-name app:build --build-version=<your-build-version>
3233
```
3334

35+
<a name="self-update"></a>
3436
## Self update
3537

3638
Using the `app:install` Artisan command you can install the `self-update` component:
@@ -41,6 +43,7 @@ php <your-app-name> app:install self-update
4143
This component will add an Artisan `self-update` command to every build application. This command
4244
will try to download the latest version from GitHub, if available.
4345

46+
<a name="custom-update-strategies"></a>
4447
#### Custom update strategies
4548

4649
The self-updater supports custom "strategies" to configure how the application is updated. By default it uses the `GithubStrategy` which will try to download the PHAR binary from a `builds/` directory in the GitHub source repository.
@@ -64,12 +67,14 @@ php <your-app-name> vendor:publish --provider "LaravelZero\Framework\Components\
6467

6568
Then update the `updater.strategy` value in the configuration file to use the required class name.
6669

70+
<a name="environment-variables"></a>
6771
## Environment Variables
6872

6973
If the `dotenv` component is installed, you can place a `.env` file in the same
7074
folder as the build application to make Laravel Zero load environment variables from
7175
that same file.
7276

77+
<a name="database"></a>
7378
## Database
7479

7580
To use SQLite in your standalone PHAR application, you need to tell Laravel Zero where to place the database in a production environment.

0 commit comments

Comments
 (0)