Skip to content

rromanchuk/romanch.uk

Repository files navigation

romanch.uk

Tests CodeQL

Prerequisites

brew bundle
sudo puma-dev -setup
# Configure puma-dev to run in the background on ports 80 and 443 with the domain `.test`.
puma-dev -install
puma-dev link -n personal personal/  # https://personal.test
puma-dev link -n romanchukopen personal/ # https://romanchukopen.test
# Allow local SSL terminated (proxied) sockets ie. wss://anycable.personal.test/cable
echo 8080 > ~/.puma-dev/anycable.personal

rbenv install 3.1.0
gem install bundler
bin/update_awscli
cp .env.example .env && open .env
pushd personal
yarn install
bundle install
bin/rails db:setup

Start local environment, including required services (postgres, anycable-go, anycable-rpc, sidekiq, dynamodb)

bin/dev

Restart local puma-dev

touch tmp/restart.txt

Run backend tests

bin/rails test

Deploy

bin/deploy
bin/upload-external

Update ec2 iam insance profile role.

bin/update_iam_role

Connect to production instance.

bin/connect

Create AMI, update launch template, update default, trigger instance refresh on ASG

bin/create_ami

Seed the development database, because no one has time for fixtures.

bin/seed-db

Create MPEG-DASH streaming assets with adaptive bitrate ladders using x265/hevc delivery

bin/abr -k path/to/source.mov

Display all routes

bin/rails routes