Changeset View
Changeset View
Standalone View
Standalone View
bin/quickstart.sh
Show All 27 Lines | rpm -qv php-ldap >/dev/null 2>&1 || \ | ||||
die "Is php-ldap installed?" | die "Is php-ldap installed?" | ||||
rpm -qv php-mysqlnd >/dev/null 2>&1 || \ | rpm -qv php-mysqlnd >/dev/null 2>&1 || \ | ||||
test ! -z "$(php --ini | grep mysql)" || \ | test ! -z "$(php --ini | grep mysql)" || \ | ||||
die "Is php-mysqlnd installed?" | die "Is php-mysqlnd installed?" | ||||
base_dir=$(dirname $(dirname $0)) | base_dir=$(dirname $(dirname $0)) | ||||
bin/regen-certs | docker pull docker.io/kolab/centos7:latest | ||||
docker pull kolab/centos7:latest | |||||
docker-compose down | docker-compose down | ||||
docker-compose build | docker-compose build | ||||
docker-compose up -d kolab mariadb redis | |||||
pushd ${base_dir}/src/ | pushd ${base_dir}/src/ | ||||
cp .env.example .env | cp .env.example .env | ||||
if [ -f ".env.local" ]; then | if [ -f ".env.local" ]; then | ||||
# Ensure there's a line ending | # Ensure there's a line ending | ||||
echo "" >> .env | echo "" >> .env | ||||
cat .env.local >> .env | cat .env.local >> .env | ||||
fi | fi | ||||
popd | |||||
bin/regen-certs | |||||
docker-compose up -d coturn kolab mariadb openvidu proxy redis | |||||
pushd ${base_dir}/src/ | |||||
rm -rf vendor/ composer.lock | rm -rf vendor/ composer.lock | ||||
php -dmemory_limit=-1 /bin/composer install | php -dmemory_limit=-1 /bin/composer install | ||||
npm install | npm install | ||||
find bootstrap/cache/ -type f ! -name ".gitignore" -delete | find bootstrap/cache/ -type f ! -name ".gitignore" -delete | ||||
./artisan key:generate | ./artisan key:generate | ||||
./artisan jwt:secret -f | ./artisan jwt:secret -f | ||||
./artisan clear-compiled | ./artisan clear-compiled | ||||
./artisan cache:clear | ./artisan cache:clear | ||||
Show All 11 Lines | |||||
popd | popd | ||||
docker-compose up -d worker | docker-compose up -d worker | ||||
pushd ${base_dir}/src/ | pushd ${base_dir}/src/ | ||||
rm -rf database/database.sqlite | rm -rf database/database.sqlite | ||||
./artisan db:ping --wait | ./artisan db:ping --wait | ||||
php -dmemory_limit=512M ./artisan migrate:refresh --seed | php -dmemory_limit=512M ./artisan migrate:refresh --seed | ||||
./artisan serve | ./artisan swoole:http start | ||||
popd | popd | ||||