summaryrefslogtreecommitdiff
path: root/doc/rc.d_cccms
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 02:39:55 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 02:39:55 +0200
commitb4f850e97aeb12369399d8e1ab354f66d3b88e40 (patch)
treea4936218a3e8df5525150d12ed4b94c077befd6f /doc/rc.d_cccms
parente7d5d0b2c32b172ecdaa80555bf5804043fd87a0 (diff)
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/)
Diffstat (limited to 'doc/rc.d_cccms')
-rw-r--r--doc/rc.d_cccms7
1 files changed, 7 insertions, 0 deletions
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}"
25extra_commands="reload" 25extra_commands="reload"
26sig_reload="USR2" 26sig_reload="USR2"
27 27
28cccms_prestart()
29{
30 mkdir -p /usr/local/www/cccms/tmp/pids /var/log
31 touch /var/log/unicorn.stderr.log
32 chown www:www /var/log/unicorn.stderr.log
33}
34
28export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin 35export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
29export RAILS_ENV=production 36export RAILS_ENV=production
30export HOME=/root 37export HOME=/root