mirror of
https://github.com/koel/koel
synced 2024-11-12 23:47:09 +00:00
chore: remove GitPod
This commit is contained in:
parent
ea02d1cca5
commit
cc5002436c
2 changed files with 0 additions and 44 deletions
|
@ -1,3 +0,0 @@
|
||||||
FROM gitpod/workspace-mysql:latest
|
|
||||||
|
|
||||||
ENV APACHE_DOCROOT_IN_REPO="public"
|
|
41
.gitpod.yml
41
.gitpod.yml
|
@ -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==
|
|
Loading…
Reference in a new issue