Skip to content

Commit 1aaf3c3

Browse files
authored
Update README.md
1 parent 01039b6 commit 1aaf3c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Deployed Version Laravel
2-
This package helps with determining which version ofyour app is currently running. This is useful during a deploy, to see when it is finished, and also when you rollback to ensure that the correct version is used.
3-
4-
By "version" I refer to a git commit hash, but you can use any convention and value you like (for instance version number in composer.json).
2+
This package helps with determining which version of your app is currently running. This is useful during a deploy, to see when it is finished, and also when you rollback to ensure that the correct version is loaded.
53

64
## Installation
75
Add the package to your Laravel project.
@@ -19,7 +17,7 @@ You need to set the value of this variable during your buld or deploy process.
1917
VERSION=YOUR_VERSION_VALUE
2018
```
2119

22-
One way to achieve this is to run the following script, but you may do it however you like:
20+
One way to achieve this is to run the following script, which uses the git hash as the version number, but you may do it however you like:
2321

2422
```bash
2523
echo "VERSION=$(git -C gitdir rev-parse HEAD)" >> .env.current-build

0 commit comments

Comments
 (0)