mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-26 11:11:20 +00:00
Fix a forum bug
Update docs + gitignore
This commit is contained in:
parent
0b033be5ca
commit
2529a23650
5 changed files with 9 additions and 4 deletions
|
@ -23,6 +23,8 @@ jobs:
|
|||
build:
|
||||
environment:
|
||||
CC_TEST_REPORTER_ID: b3db5b7df9a0a1d0fd3503e72d7431ffbfa172492c2840d590ccb2fafd9172d3
|
||||
RAILS_ENV: test
|
||||
RACK_ENV: test
|
||||
docker:
|
||||
- *default_docker_ruby_executor
|
||||
steps:
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,7 +18,7 @@
|
|||
# Database and files
|
||||
db_data/*
|
||||
!db_data/.placeholder
|
||||
*.sql
|
||||
*.sql*
|
||||
|
||||
# ignore dkim keys
|
||||
dkim
|
||||
|
|
|
@ -32,7 +32,10 @@ Just run and open http://localhost:4000/
|
|||
## TODO issues for dev
|
||||
|
||||
1. Puma should be running (eg. spring), and if debugger is used it should be able to connect via docker-compose up
|
||||
1.
|
||||
|
||||
# Tags in code
|
||||
|
||||
FIXME, TODO, EXPLAIN, OBSOLETE
|
||||
|
||||
## Handy commands
|
||||
|
||||
|
|
|
@ -83,6 +83,6 @@ class Forum < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.params(params, cuser)
|
||||
params.require(:data_file).permit(:description, :position, :title, :category_id)
|
||||
params.require(:forum).permit(:description, :position, :title, :category_id)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,7 +7,6 @@ preload_app!
|
|||
daemonize false
|
||||
|
||||
# FIXME
|
||||
#base_path = (ENV['DEPLOY_PATH'] || Dir.pwd)
|
||||
#stderr_path = "#{base_path}/log/puma.stderr.log"
|
||||
#stdout_path = "#{base_path}/log/puma.stdout.log"
|
||||
#directory base_path
|
||||
|
@ -30,6 +29,7 @@ on_worker_boot do
|
|||
end
|
||||
end
|
||||
|
||||
# EXPLAIN This has been added here but why?
|
||||
on_restart do
|
||||
ENV["BUNDLE_GEMFILE"] = "#{current_path}/Gemfile"
|
||||
Dotenv.overload
|
||||
|
|
Loading…
Reference in a new issue