mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Added version arg in setup script
This commit is contained in:
parent
5e166068c5
commit
7a2239a015
1 changed files with 3 additions and 2 deletions
|
|
@ -6,12 +6,14 @@ use Appwrite\Docker\Compose;
|
|||
use Appwrite\Docker\Env;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Validator\Mock;
|
||||
use Utopia\View;
|
||||
|
||||
$cli
|
||||
->task('install')
|
||||
->desc('Install Appwrite')
|
||||
->action(function () {
|
||||
->param('version', APP_VERSION_STABLE, new Mock(), 'Appwrite version', true)
|
||||
->action(function ($version) {
|
||||
/**
|
||||
* 1. Start - DONE
|
||||
* 2. Check for older setup and get older version - DONE
|
||||
|
|
@ -30,7 +32,6 @@ $cli
|
|||
*/
|
||||
$vars = Config::getParam('variables');
|
||||
$path = '/usr/src/code/appwrite';
|
||||
$version = null;
|
||||
$defaultHTTPPort = '80';
|
||||
$defaultHTTPSPort = '443';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue