Alias for Laravel Valet
Switch branches/tags
Nothing to show
Clone or download
Latest commit ff5c1b8 Apr 10, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Merge pull request #1 from rowancollins89/patch-1 Apr 9, 2017

README.md

Valet Aliases

Aliases for Laravel Valet vup and vdown

# Valet Up
vup() {
    # Start Valet
    valet start
    # Start MySql
    brew services start mysql
    # If a valet Dockerfile is present, run as daemon
    if [ -f docker-compose-valet.yml ]; then
        echo "👍    \e[4m\e[42m\e[30mValet Dockerfile found, running as daemon...\e[0m"
        docker-compose --file docker-compose-valet.yml up -d
    fi
}

# Valet Down
vdown() {
    # Stop Valet
    valet stop
    # Stop MySql
    brew services stop mysql
    # If a valet dockerfile exists then stop it
    if [ -f docker-compose-valet.yml ]; then
        echo "👍    \e[4m\e[42m\e[30mValet Dockerfile found, stopping...\e[0m"
        docker-compose --file docker-compose-valet.yml stop
    fi
}