1
0
Fork
You've already forked treehouse
0
forked from etienne/treehouse
No description
  • Ruby 59.4%
  • Haml 27.3%
  • CSS 5.9%
  • JavaScript 3.9%
  • SCSS 2.4%
  • Other 1.1%
2026年04月05日 13:46:28 -03:00
app Scheduled the library summary notification 2026年04月05日 13:46:28 -03:00
bin Updated seeds script 2026年01月12日 21:27:40 -04:00
config Scheduled the library summary notification 2026年04月05日 13:46:28 -03:00
db Added notify_email to community fund 2026年03月19日 22:03:24 -03:00
deploy Added Dockerfile used for deployment 2025年04月11日 22:03:37 -03:00
doc Added documentation about deploying Treehouse application 2025年10月24日 22:23:16 -03:00
lib Added Settings class 2025年09月27日 13:24:13 -03:00
public Added TveController and applied to TVE-related controllers 2025年03月21日 22:12:31 +03:00
spec Removed area booking admin screens 2026年02月25日 22:25:32 -04:00
storage Initial commit 2022年05月08日 21:40:50 +03:00
vendor Initial commit 2022年05月08日 21:40:50 +03:00
.dockerignore Added a dockerignore file 2025年04月06日 20:52:28 -03:00
.gitattributes Updated git config 2025年01月06日 14:24:41 -04:00
.gitignore Set up staging environment 2024年11月04日 14:24:17 -04:00
.mise.toml Added take_out boolean to meals 2026年01月12日 20:56:04 -04:00
.rspec Added rspec 2022年05月15日 15:30:45 +03:00
.rubocop.yml Implemented the ten day booking rule 2022年10月26日 22:20:19 +04:00
.ruby-version Installed bundler-audit and upgraded gems 2024年09月21日 14:36:08 -03:00
.tool-versions Removed use of Sidekiq in Production and from the codebase 2024年11月15日 18:13:45 -04:00
Capfile Removed use of Sidekiq in Production and from the codebase 2024年11月15日 18:13:45 -04:00
config.ru Added tests for recent controllers 2022年09月16日 23:14:52 +02:00
Gemfile Added Mission Control gem 2026年02月27日 22:40:43 -04:00
Gemfile.lock Added Mission Control gem 2026年02月27日 22:40:43 -04:00
LICENSE Add AGPL3 license to the project 2023年06月01日 21:04:46 -03:00
Procfile Updated the mailer from value, based on environment 2024年11月07日 21:30:59 -04:00
Rakefile Added tests for recent controllers 2022年09月16日 23:14:52 +02:00
README.md Updated maintenance page 2024年11月15日 21:44:39 -04:00

Treehouse

This Rails application provides services used by members of the Treehouse Village Ecohousing community.

Development setup

  1. Set up your local environment using asdf. Alternatively, feel free to skip the following and install Ruby, Postgresql and NodeJS manually.

    To set up your environment with asdf:

    1. Install asdf locally.
    2. Make sure you install dependencies needed for the asdf Postgres plugin.
    • If you're a Debian-based distro user, you may also want to add the following package: libpq-dev.
    1. Install all asdf plugins needed for this project, get all needed gems and setup your local database by running the following:
    bin/dev_setup
    
  2. At this point, your local database will be setup for the application. It's time to seed it:

    bundle exec rails db:seed
    
  3. Finally, start your server to access the app by running:

    foreman start
    

    The app is now available at http://localhost:3000. To log in with an admin, use admin@example.com. Otherwise, use user@example.com. The password for both these accounts is password.

Tests

To run all tests:

bundle exec rspec

Deployments

To deploy main to home.treehousevillage.ca, simply run the following from the project root:

bin/deploy

This script will first run all tests, and if no test fails, then it will proceed with the deployment.

What if something is broken after deployment?

No worries! Take a deep breath then run the following command from the project root:

bundle exec cap production deploy:rollback

This will revert to the previous deployed revision (side note: the last 5 deployment revisions are kept on the server).

After this rollback has taken effect and you've checked that everything is working again, please consider writing a test will cover this scenario.

Maintenance mode

On the server:

touch ~/maintenance_is_enabled

Remove the file to leave maintenance mode.