From b4f850e97aeb12369399d8e1ab354f66d3b88e40 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 27 Jun 2026 02:39:55 +0200 Subject: Stage 6 click-testing fixes and production setup - file_attachment.rb: delete old upload directory before writing replacement files; fixes orphaned variants when filename or mime type changes - assets/edit.html.erb: add file upload field and current file display; the form was previously empty and non-functional - admin.css: fix button_to hover styling; buttons now show orange hover to signal interactivity - test/controllers/users_controller_test.rb: assert input[type=submit] not anchor tag for destroy action (button_to change) - test/test_helper.rb: add I18n.locale reset in setup block - doc/rc.d_cccms: fix cccms_chdir, add start_precmd for log/pid dirs, PATH export for bash wrapper, user/pid/tcp_nopush unicorn fixes - doc/INSTALL.md: new installation guide covering all non-obvious steps - Remove parked search migration from doc/ (now in db/migrate/) --- doc/rc.d_cccms | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/rc.d_cccms') diff --git a/doc/rc.d_cccms b/doc/rc.d_cccms index 62e8bde..8404bc7 100644 --- a/doc/rc.d_cccms +++ b/doc/rc.d_cccms @@ -25,6 +25,13 @@ required_dirs="${cccms_dir}" extra_commands="reload" sig_reload="USR2" +cccms_prestart() +{ + mkdir -p /usr/local/www/cccms/tmp/pids /var/log + touch /var/log/unicorn.stderr.log + chown www:www /var/log/unicorn.stderr.log +} + export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin export RAILS_ENV=production export HOME=/root -- cgit v1.3