site

Website's source files.
git clone git://git.ryanmj.xyz/site.git
Log | Files | Refs | LICENSE

commit 8704e956f7986b30bc90b041c57255a5350f85ce
parent 8ac137879f1822bfa707a16c23cea0717e8efdea
Author: Ryan Jeffrey <ryan@ryanmj.xyz>
Date:   Tue, 22 Feb 2022 12:58:15 -0800

Add production build script, remove error controller

Diffstat:
Dapp/controllers/error_controller.rb | 17-----------------
Abuild.zsh | 10++++++++++
2 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/app/controllers/error_controller.rb b/app/controllers/error_controller.rb @@ -1,17 +0,0 @@ -class ErrorController < ApplicationController - def not_found - render status: 404 - end - - def internal_error - render status: 500 - end - - def unprocessable - render status: 422 - end - - def unacceptable - render status: 406 - end -end diff --git a/build.zsh b/build.zsh @@ -0,0 +1,10 @@ +#!/usr/bin/env zsh + +# TODO get nginx to serve files in /public +# TODO rake db:create RAILS_ENV=production +# TODO rake db:migrate RAILS_ENV=production +export RAILS_ENV=production +bin/bundle install +bin/bundle exec rake assets:precompile +bin/bundle exec rake assets:clean +bin/bundle exec rake db:migrate