diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile deleted file mode 100644 index fba144cd..00000000 --- a/.gitpod.dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM gitpod/workspace-mysql:latest - -ENV APACHE_DOCROOT_IN_REPO="public" diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index d1faf01d..00000000 --- a/.gitpod.yml +++ /dev/null @@ -1,41 +0,0 @@ -image: - file: .gitpod.dockerfile -ports: - - port: 8001 - onOpen: open-preview - - port: 3306 - onOpen: ignore -tasks: - - name: Apache - command: > - touch /var/log/apache2/error.log; - touch /var/log/apache2/access.log; - multitail /var/log/apache2/error.log -I /var/log/apache2/access.log - - name: koel - init: > - composer install - command: > - cp .env.example .env; - WORKSPACE_URL=$(gp url 8001 | sed -E s/\\/$//); - sed -i "/APP_URL=/c APP_URL=$WORKSPACE_URL" .env; - sed -i "/CDN_URL=/c CDN_URL=$WORKSPACE_URL" .env; - sed -i "/FORCE_HTTPS=/c FORCE_HTTPS=true" .env; - sed -i "/MEDIA_PATH=/c MEDIA_PATH=/workspace/media" .env; - mkdir -p /workspace/media; - (cd /workspace/media; - wget http://www.hochmuth.com/mp3/Haydn_Cello_Concerto_D-1.mp3; - wget http://www.hochmuth.com/mp3/Tchaikovsky_Rococo_Var_orch.mp3; - wget http://www.hochmuth.com/mp3/Vivaldi_Sonata_eminor_.mp3; - ); - source .env; - mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE"; - mysql -e "CREATE USER '$DB_USERNAME'@'localhost' IDENTIFIED BY '$DB_PASSWORD';"; - mysql -e "GRANT ALL PRIVILEGES ON * . * TO '$DB_USERNAME'@'localhost';"; - mysqladmin reload; - php artisan koel:init --no-interaction; - php artisan koel:sync; - php artisan key:generate; - apachectl start; -vscode: - extensions: - - octref.vetur@0.23.0:TEzauMObB6f3i2JqlvrOpA==