Commit Graph

51 Commits

Author SHA1 Message Date
JuliusR e5a9c03eb9 rails db:schema:dump
This updates the db/schema.rb from a clean development database
(mariadb:10.1) using Rails 6.1.
2021-12-21 08:45:42 +01:00
JuliusR c2ee9065db add public/packs to .gitignore 2021-12-21 08:45:42 +01:00
JuliusR 0d88a64df9 stop ignoring config/*.yml, but ignore config/database.yml 2021-12-21 08:45:42 +01:00
JuliusR 16807381e5 copy .gitignore from old sharedlists 2021-12-21 08:45:42 +01:00
JuliusR b318469606 replace database.yml by database.yml.SAMPLE (now mysql2 only) 2021-12-21 08:45:41 +01:00
JuliusR 248d787ba5 fix GEM_PATH and PATH in Dockerfile.development 2021-12-21 08:45:41 +01:00
1resu 5f3713aecd Add interface to create and update user accounts 2021-12-19 04:13:05 +01:00
1resu 5c89cf1501 Remove unused test data 2021-12-19 00:18:07 +01:00
1resu 97444ab902 Add ApplicationRecord as new superclass for app models
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-models-now-inherit-from-applicationrecord-by-default
2021-12-19 00:16:19 +01:00
1resu f5efc9af77 Specify minimal possible rails release for migrations 2021-12-18 23:52:05 +01:00
1resu 7c7d780719 Update confirm syntax 2021-12-18 18:58:17 +01:00
JuliusR 7e2c1d58f6 add apk packages to Dockerfile.development: sqlite[-dev], tzdata 2021-12-18 18:52:14 +01:00
JuliusR 6eb1d60f03 use alpine:3.14 as Dockerfile.development's base (was: 3.5) 2021-12-18 18:52:14 +01:00
JuliusR a92d4a1a32 prefer '-b 0.0.0.0' over '--bind 0.0.0.0' (docker-compose.yml)
The latter yields the following error:

    `handle_argument_error': ERROR: "rails server" was called with
    arguments ["--bind", "0.0.0.0"] (Thor::InvocationError)
2021-12-18 18:52:14 +01:00
JuliusR dc1b336ba4 prefix 'rails server' command with 'bundle exec' (docker-compose.yml) 2021-12-18 18:52:14 +01:00
JuliusR 4ac6d08bc8 set Dockerfile's base image to ruby:2.7.5 2021-12-18 18:52:14 +01:00
1resu 169fcd305b Rename secret_token to secret_key_base 2021-12-18 18:18:12 +01:00
1resu 7be9d11ce5 Add secrets file 2021-12-18 18:07:32 +01:00
1resu f92c925434 Add more necessary gems, define versions, remove comments 2021-12-18 17:48:56 +01:00
1resu 471f78bcd8 Pin verion for midi-smtp-server 2021-12-18 17:09:04 +01:00
JuliusR 74837d4f9a copy config/schedule.rb from old sharedlists 2021-12-18 16:38:46 +01:00
JuliusR c6b5b561dc add whenever 2021-12-18 16:38:09 +01:00
JuliusR f5e81e71d4 copy README.md from old sharedlists 2021-12-18 16:13:53 +01:00
1resu 867ecc28ae Rename tasks files to their actual task name 2021-12-18 16:05:55 +01:00
JuliusR 2db00d5d3d rails generate simple_form:install 2021-12-18 15:56:47 +01:00
JuliusR 718407f1ac copy config/locales/en.yml 2021-12-18 15:55:28 +01:00
JuliusR 894c54421b use Strong Parameters for Article 2021-12-18 15:48:51 +01:00
JuliusR 81ba5ab20e fix article pagination 2021-12-18 15:43:10 +01:00
JuliusR 952aecfb40 migrate lib/tasks/mail.rake for MidiSmtpServer 3
see https://midi-smtp-server.readthedocs.io/appendix_upgrade/
2021-12-18 15:24:22 +01:00
1resu c7a74c8e7d Change update_attributes to update 2021-12-18 15:05:53 +01:00
JuliusR 6340e224ed add will_paginate 2021-12-18 15:05:10 +01:00
JuliusR 4e18ab61d7 update Gemfile.lock after fe027ff57f 2021-12-18 14:56:27 +01:00
JuliusR ad35e02ddb use Strong Parameters for Supplier 2021-12-18 14:56:09 +01:00
JuliusR e26ef59ea2 add jquery (via webpack) 2021-12-18 14:36:15 +01:00
1resu fe027ff57f Add requirement to midi-smtp-server 2021-12-18 14:35:16 +01:00
JuliusR db1dabbb4b add simple_form 2021-12-18 13:59:11 +01:00
JuliusR 90be4c513d fix app/lib path for loading yml
introduced by d595ae8117
2021-12-18 11:58:07 +01:00
JuliusR dbe260e4fe add roo and roo-xls 2021-12-18 11:55:20 +01:00
JuliusR d595ae8117 migrate previous lib/ (except tasks) to app/lib 2021-12-18 11:53:45 +01:00
JuliusR c135679992 fix email regex in Supplier (\A,\z vs ^,$) 2021-12-18 11:53:45 +01:00
1resu cbcf042992 Merge branch 'main' of git.systemausfall.org:julius/sharedlists 2021-12-18 11:51:09 +01:00
1resu 1ef6964dd7 Add tasks files 2021-12-18 11:50:56 +01:00
JuliusR 4d553d793b replace db by previous version 2021-12-18 11:39:41 +01:00
JuliusR a30090ff86 remove attr_accessible from User model 2021-12-18 11:39:22 +01:00
JuliusR a154ed0356 add bcrypt 2021-12-18 11:36:57 +01:00
JuliusR 2133be2436 replace skeleton files by previous version; apply obvious fixes 2021-12-18 11:26:22 +01:00
1resu 1f5cbcd6d1 Add Docker files, Update rails commands 2021-12-18 11:25:31 +01:00
1resu 7f0e2c3b42 Add Licence file 2021-12-18 11:24:54 +01:00
JuliusR 57e4cf3dee rails haml:erb2haml 2021-12-18 11:05:51 +01:00
JuliusR 8fbd85f11a add haml-rails 2021-12-18 11:01:00 +01:00