#!/bin/sh
php -v

# COMPOSER
if [ ! -d "/producer/vendor" ]
then
    composer install
fi

# DATABASE
if [ ! -f "/producer/database/database.sqlite" ]
then
    touch /producer/database/database.sqlite
    php artisan migrate
fi


php /producer/artisan serve --host "0.0.0.0"
