feat: moving environment files to use .env and updating podcast seeder

This commit is contained in:
Paul Couture 2023-06-23 17:38:44 -05:00
parent 8eb4d14909
commit b275915c21
5 changed files with 75 additions and 13 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
DB_DATABASE=database_name
DB_USERNAME=database_username
DB_PASSWORD="database_password_for_laravel_app"
DB_ROOT_PASSWORD="database_password_for_superuser"

View File

@ -1,7 +1,43 @@
# PodcastArtGenerator # Podcast Art Generator
Modernizing the No Agenda Art Generator. Modernizing the No Agenda Art Generator.
Since 2010, the [No Agenda Art Generator](https://noagendaartgenerator.com) has been producing album art for the [No Agenda Podcast](https://noagendashow.net) live via community collaboration by the artists that make up the best podcast art creators in the universe. Since 2010, the [No Agenda Art Generator](https://noagendaartgenerator.com) has been producing album art for the [No Agenda Podcast](https://noagendashow.net) live via community collaboration by the artists that make up the best podcast art creators in the universe.
In October 2016, the 2.0 release of the Art Generator began based on Laravel 4.2. It has served the podcast and community well, but this project seeks to make it easier for collaborators to contribute, modify, and maintain the art generator while making the product available to more podcasts and artists. In October 2016, the 2.0 release of the Art Generator began based on Laravel 4.2. It has served the podcast and community well, but this project seeks to make it easier for collaborators to contribute, modify, and maintain the art generator while making the product available to more podcasts and artists.
### License
The Podcast Art Generator is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
### Contibuted Artwork License
Artworks submitted by artists to the Podcast Art Generator are licensed under a Creative Commons License.
By submitting artwork, you are acknowledging you have the right to publish the work and are, by submitting the work, agreeing to place it under the [Creative Commons Attribution-Share Alike 3.0, United States License](http://creativecommons.org/licenses/by-sa/3.0/us/).
#### Copyright
##### Copyright © 2010-2023, Paul Couture, Some Rights Reserved.
---
---
### Built Using:
### Laravel
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
### Laravel License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

View File

@ -1,6 +1,8 @@
version: '3' version: '3'
services: services:
podcastartgenerator-app: laravel-app:
env_file: .env
image: shinsenter/laravel:latest image: shinsenter/laravel:latest
volumes: volumes:
- ./site:/var/www/html - ./site:/var/www/html
@ -11,9 +13,9 @@ services:
PGID: ${GID:-1000} PGID: ${GID:-1000}
REDIS_HOST: redis REDIS_HOST: redis
DB_HOST: db DB_HOST: db
DB_DATABASE: laravel DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: root DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: mydb_p@ssw0rd DB_PASSWORD: ${DB_PASSWORD}
# LARAVEL_QUEUE_ENABLED: true # LARAVEL_QUEUE_ENABLED: true
# LARAVEL_QUEUE_OPTIONS: --timeout=60 --tries=3 redis # LARAVEL_QUEUE_OPTIONS: --timeout=60 --tries=3 redis
# LARAVEL_SCHEDULE_ENABLED: true # LARAVEL_SCHEDULE_ENABLED: true
@ -35,10 +37,13 @@ services:
- "8181:80" - "8181:80"
db: db:
image: mariadb:latest image: mariadb:latest
env_file: .env
environment: environment:
TZ: UTC TZ: UTC
MYSQL_ROOT_PASSWORD: mydb_p@ssw0rd MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: laravel MARIADB_USER: ${DB_USERNAME}
MARIADB_DATABASE: ${DB_DATABASE}
MARIADB_PASSWORD: ${DB_PASSWORD}
volumes: volumes:
- "./db/data:/var/lib/mysql" - "./db/data:/var/lib/mysql"
- "./db/dump:/docker-entrypoint-initdb.d" - "./db/dump:/docker-entrypoint-initdb.d"

View File

@ -1,6 +1,6 @@
APP_NAME="No Agenda Art Generator" APP_NAME="No Agenda Art Generator"
APP_ENV=local APP_ENV=local
APP_KEY=base64:H840ho2ltTKV3IC1FQ333AaU8iW2zsn6ma67qhZWerk= APP_KEY=base64:laravel_key_generated_by_app
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://127.0.0.1 APP_URL=http://127.0.0.1
@ -9,11 +9,11 @@ LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug LOG_LEVEL=debug
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_HOST=db
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=laravel DB_DATABASE=database_database_from_docker_env
DB_USERNAME=root DB_USERNAME=database_username_from_docker_env
DB_PASSWORD=mydb_p@ssw0rd DB_PASSWORD="docker_database_password_from_docker_env"
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file

View File

@ -116,6 +116,23 @@ public function run()
$added = '2019-02-22 20:00:00'; $added = '2019-02-22 20:00:00';
$this->createPodcast($name, $description, $website, $slug, $feed, $added); $this->createPodcast($name, $description, $website, $slug, $feed, $added);
$name = 'Rare Encounter';
$description = 'AbleKirby and coldacid converse on anime they watch, books and manga they read, games they play,
and all the tech stuff that they come across.';
$website = 'http://rareencounter.net';
$slug = 'rare-encounter';
$feed = 'https://rareencounter.net/external.php?name=RSS';
$added = '2020-07-16 20:00:00';
$this->createPodcast($name, $description, $website, $slug, $feed, $added);
$name = 'Unrelenting';
$description = 'The Unrelenting Podcast is hosted by Gene Naftulvev and Darren ONeill. It covers politics, technology, pop-culture, and more!';
$website = 'http://unrelenting.show';
$slug = 'unrelenting';
$feed = 'https://www.unrelenting.show/feed/podcast/';
$added = '2021-10-29 20:00:00';
$this->createPodcast($name, $description, $website, $slug, $feed, $added);
} }
private function createPodcast($name, $description, $website, $slug, $feed, $added) { private function createPodcast($name, $description, $website, $slug, $feed, $added) {