Changeset View
Changeset View
Standalone View
Standalone View
bin/quickstart.sh
Show All 30 Lines | 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?" | ||||
test ! -z "$(php --modules | grep swoole)" || \ | test ! -z "$(php --modules | grep swoole)" || \ | ||||
die "Is swoole installed?" | die "Is swoole installed?" | ||||
base_dir=$(dirname $(dirname $0)) | base_dir=$(dirname $(dirname $0)) | ||||
docker pull docker.io/kolab/centos7:latest | |||||
docker-compose down --remove-orphans | |||||
docker-compose build | |||||
pushd ${base_dir}/src/ | |||||
# Always reset .env with .env.example | # Always reset .env with .env.example | ||||
cp .env.example .env | cp src/.env.example src/.env | ||||
if [ -f ".env.local" ]; then | if [ -f "src/.env.local" ]; then | ||||
# Ensure there's a line ending | # Ensure there's a line ending | ||||
echo "" >> .env | echo "" >> src/.env | ||||
cat .env.local >> .env | cat src/.env.local >> src/.env | ||||
fi | fi | ||||
popd | docker pull docker.io/kolab/centos7:latest | ||||
docker-compose down --remove-orphans | |||||
docker-compose build | |||||
bin/regen-certs | bin/regen-certs | ||||
docker-compose up -d coturn kolab mariadb openvidu kurento-media-server pdns-sql proxy redis | docker-compose up -d coturn kolab mariadb openvidu kurento-media-server pdns-sql proxy redis | ||||
pushd ${base_dir}/src/ | pushd ${base_dir}/src/ | ||||
rm -rf vendor/ composer.lock | rm -rf vendor/ composer.lock | ||||
Show All 30 Lines | |||||
docker-compose up -d worker nginx | docker-compose up -d worker nginx | ||||
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 data:import | ./artisan data:import | ||||
./artisan swoole:http stop >/dev/null 2>&1 || : | ./artisan swoole:http stop >/dev/null 2>&1 || : | ||||
./artisan swoole:http start | SWOOLE_HTTP_DAEMONIZE=true ./artisan swoole:http start | ||||
./artisan horizon | |||||
mollekopf: Instead of horizon I'm using:
```
./artisan queue:restart
./artisan queue:work --timeout=60… | |||||
Done Inline ActionsHorizon also gives you https://admin.<domain>/horizon for some UI, it's what we're using in production. vanmeeuwen: Horizon also gives you https://admin.<domain>/horizon for some UI, it's what we're using in… | |||||
popd | popd | ||||
Instead of horizon I'm using:
as a lightweight local worker in bin/quickstart.sh. Haven't tried horizon like that though, so can't comment on what's better.