Skip to content

Commit 8d892d9

Browse files
committed
Moved url to check for updates to env
1 parent 2f2d189 commit 8d892d9

File tree

5 files changed

+58
-5
lines changed

5 files changed

+58
-5
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE_URL=https://hnhdigital-os.github.io/mysql-helper

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/database/database.sqlite
66
/builds
77
/build-src
8+
.env

app/Commands/SelfUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function handle()
3434
{
3535
$this->parseVersion();
3636

37-
$url = 'https://hnhdigital-os.github.io/mysql-helper';
37+
$url = env('UPDATE_URL');
3838

3939
if ($this->release !== 'stable') {
4040
$url .= '/'.$this->release;

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
"require": {
1919
"php": "^7.1.3",
2020
"ext-ssh2": "*",
21-
"hnhdigital-os/php-cli-helper": "dev-master",
2221
"hnhdigital-os/laravel-console-self-update": "dev-master",
22+
"hnhdigital-os/php-cli-helper": "dev-master",
2323
"illuminate/database": "5.7.*",
2424
"laravel-zero/framework": "5.7.*",
2525
"symfony/process": "^4.2",
2626
"symfony/yaml": "^4.2",
27+
"vlucas/phpdotenv": "^2.5",
2728
"zendframework/zend-text": "^2.7"
2829
},
2930
"require-dev": {

composer.lock

Lines changed: 53 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)