mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
tweaking scripts
This commit is contained in:
@@ -9,7 +9,7 @@ wget https://github.com/laravel/valet/archive/master.tar.gz -O $HOME/.valet-cli/
|
||||
tar xvzf $HOME/.valet-cli/valet.tar.gz -C $HOME/.valet-cli --strip 1 > /dev/null 2>&1
|
||||
|
||||
# Install Valet's Composer dependencies
|
||||
/usr/local/bin/php composer install -d $HOME/.valet-cli
|
||||
/usr/local/bin/php /usr/local/bin/composer install -d $HOME/.valet-cli
|
||||
|
||||
# Run the Valet installation process
|
||||
$HOME/.valet-cli/valet --version
|
||||
|
||||
3
valet
3
valet
@@ -23,6 +23,9 @@ fi
|
||||
if [[ "$1" = "install" ]] || [[ "$1" = "domain" ]] || [[ "$1" = "start" ]] || [[ "$1" = "restart" ]] || [[ "$1" = "stop" ]] || [[ "$1" = "uninstall" ]]
|
||||
then
|
||||
sudo php "$DIR/cli/valet.php" "$@"
|
||||
elif [[ "$1" = "update" ]]
|
||||
then
|
||||
bash <(curl -s https://raw.githubusercontent.com/laravel/valet/master/update.sh)
|
||||
elif [[ "$1" = "share" ]]
|
||||
then
|
||||
HOST="${PWD##*/}"
|
||||
|
||||
Reference in New Issue
Block a user