Skip to content

Latest commit

 

History

4,512 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

README

Introduce video (Chinese)

Watch the video

Slide

rubyconf2020-tailwind-css-rails6-alpinejs

Steps to build the local dev.

Generate dummy settings

bundle install
pnpm install
RAILS_ENV=production bin/webpack
bin/webpack-dev-server
bin/rails s # run in seperate console

Import to dev DB.

psql -d postgres
DROP DATABASE thape_web_dev;
CREATE DATABASE thape_web_dev WITH ENCODING='UTF8';
\q
gunzip < thape_web_prod.sql.gz | psql -d thape_web_dev

Import to dev DB in WSL2 Ubuntu

sudo service postgresql start
sudo -u postgres createuser yxh
sudo -u postgres createdb thape_web_dev
gunzip < thape_web_prod.sql.gz | psql -d thape_web_dev

Export production DB

pg_dump thape_web_prod -O -x | gzip > thape_web_prod.sql.gz

Develop notes

Add a new Tailwind CSS

Due to Tailwind CSS 1.9 limit, must touch CSS after adding a new class(the class-name never used.)

About

New THAPE web site using TailwindUI

Resources

Stars

27 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages