GithubHelp home page GithubHelp logo

usarise / radio-t-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radio-t/radio-t-site

0.0 0.0 0.0 149.88 MB

Сайт подкаста Радио-Т

Home Page: https://radio-t.com

License: MIT License

Shell 1.81% JavaScript 17.43% Python 7.88% TypeScript 3.89% Makefile 0.77% HTML 19.85% Dockerfile 1.03% SCSS 47.36%

radio-t-site's Introduction

Радио-Т hugo, скрипты для создания и доставки

генерация сайта

docker-compose build hugo
docker-compose run --rm hugo

публикация подкаста

Перед использованием, необходимо иметь собранный docker образ publisher. Команда сборки при помощи docker-compose (конфиг в руте репозитария): docker-compose build publisher.

Скрипты публикации могут быть вызваны при помощи make в директории ./publisher:

  • make - список доступных команд
  • make new-episode — создает шаблон нового выпуска, темы берутся с news.radio-t.com
  • make new-prep — создает шаблон "Темы для ..." следующего выпуска
  • make upload-mp3 FILE=rt_podcast685/rt_podcast685.mp3 - добавляет mp3 теги и картинку в файл подкаста, после чего разносит его по нодам через внешний ansible контейнер. Для выполнения необходимо подключить в docker-compose конфиге директорию с mp3 файлами подкаста как volume в сервис publisher
  • make deploy — добавляет в гит и запускает push + build на мастер. После этого строит лог чата и очищает темы

переменные окружения

  • RT_NEWS_ADMIN user:passwd для news
  • PODCAST_ARCHIVE_CREDS user:passwd для sftp архивов

фронтенд

# node 10
cd hugo

npm install

# разработка на localhost:3000
# с hugo LiveReload, без turbolinks
npm run start
# без hugo LiveReload, с turbolinks
npm run start-turbo

# сборка для прода
# результаты сборки:
# - hugo/static/build/
# - hugo/data/manifest.json
npm run production

лого в src/images/

фавиконки в static/ и описаны в layouts/partials/favicons.html

обложки в static/images/covers/ (для сохранения совместимости также оставлены обложки static/images/cover.jpg и static/images/cover_rt_big_archive.png)

radio-t-site's People

Contributors

a-korzun avatar adfslslddkds avatar arthurgubaidullin avatar azzz avatar bobuk avatar dependabot[bot] avatar dimon4ezzz avatar dtruebin avatar gektorgrom avatar grayodesa avatar guerosf avatar igoradamenko avatar labutin avatar lbejiuk avatar life777 avatar mavrin avatar mbelsky avatar nihisil avatar nikitapozdeev avatar q210 avatar rakleed avatar rmuhamedgaliev avatar shdq avatar slawiko avatar thetitanrain avatar umputun avatar usarise avatar vblz avatar webkonstantin avatar zsxoff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.