Skip to content

petakopi/petakopi.my

Repository files navigation

README

View performance data on Skylight

Notes

This is the source code for petakopi.my.

Feel free to start a discussion before starting the work.

Moderators

I've created a guide for moderators on how to verify the data.

Development

Pre-seed DB:

rails seeder:locations
rails seeder:tags

Google Credentials

Depending on the setup, we may have to allow our IP to use Google API here.

Reports

Use metabase.com

# Pull for the first time
docker pull metabase/metabase:latest

# Run on port 12345
docker run -d -p 12345:3000 --name metabase metabase/metabase

# See the logs
docker logs -f metabase

# Setup SSH Tunnel
ssh -N -L 5454:localhost:5432 deployer@petakopi

# Add database
psql -U petakopi -h localhost -p 5454 -d petakopi

# Get the password
tomo env:show

Production

Helpul commands:

tomo env:set FOO=bar
tomo run -- puma:log -f
tomo petakopi:tasks db:migrate:status
tomo petakopi:tasks report:closed_coffee_shops

DISCLAIMER

This is not how I usually code, just saying 😛

Sponsors

Contacts

@petakopi.my