npm run devbundle exec guard --no-interactions
- Install dependencies:
# Install Ruby dependencies
bundle install
# Install Node.js dependencies
npm install- Start development servers:
Run these commands in separate terminal windows:
# Watch and compile Tailwind CSS
npm run dev
# Start LiveReload server
bundle exec guard# Build Tailwind CSS
npm run buildThe compiled CSS will be in assets/tailwind.css.
- Posthaven theme documentation
- See the posthaven_theme gem for theme file upload via the API.
Old instructions below
Install bundler:
gem install bundler
Install the gems:
bundle install
Build assets/blog.css:
rake compile
Watch src/blog.scss and build on update:
rake watch
In the posthaven dir
rake themes:import_all
Changes to layout will automatically reload
For changes to styles
Use the watch command
To reload styles in postforge
rake themes:import_all
The Tailwind CSS file is compiled to:
assets/stylesheets/tailwind.css
This file should be served at:
/stylesheets/tailwind.css
