Website, Rails powered!
- Ruby 3.3.5
- node >= 20
- PSQL >= 14
Changes should be added via merge request, as main
has a CI action that deploys on merge. The application relies on a PostgreSQL instance for its database, so make sure to set that up for your local environment.
Because we use ActionText, the application does require dependencies for ActiveStorage as well (ie, libvips
) though these are currently not used.
The database and storage configurations are provided in a .sample
file, make sure you copy those and rename them to the correct .yml
file. These files are git ignored, so you can set up your local environment as needed.
- Pull/clone the repo
- Run
bundle install
- Run
npm install
- Run
cp ./config/database.yml.sample ./config/database.yml
- Run
cp ./config/storage.yml.sample ./config/storage.yml
- Edit the two files above as needed.
- Run
bundle exec rails db:setup
This should get the application setup and ready to run.
To run the application locally:
- Run
bin/dev
- this command will watch JS and CSS to rebuild - Run
bundle exec rails s
- this command will run the Rails server
This application is deployed via Dockerfile, so changes that will affect dependencies, etc should be reflected in the Dockerfile
.