libresh / compose-discourse Goto Github PK
View Code? Open in Web Editor NEWMoved to https://lab.libreho.st/libre.sh/compose/discourse
License: GNU Affero General Public License v3.0
Moved to https://lab.libreho.st/libre.sh/compose/discourse
License: GNU Affero General Public License v3.0
The standard Discourse has a default POP3 polling frequency of 5 minutes.
If we want to propose Discourse as a replacement to standard mailing lists (especially mailman2) then we need to get a more instant workflow.
According to the post above, this should be able to change in:
app/jobs/scheduled/poll_mailbox.rb
It should be ok as long as the polling mailbox is hosted on our own domains. To guarantee this, some logic could be added to only increase the frequency for in-house mailboxes.
The instructions in the README.md are incomplete. Please finish and maintain this project because it would be wonderful if the Discourse people would ditch that stupid install script that hes so in love with why embrace docker and not really embrace docker its cute that they use it but its embarassing that they can't figure out how containers work even this late in the docker game.
root@s:~|⇒ git clone https://github.com/indiehosters/discourse.git
Cloning into 'discourse'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 191 (delta 0), reused 0 (delta 0), pack-reused 190
Receiving objects: 100% (191/191), 37.41 KiB | 497.00 KiB/s, done.
Resolving deltas: 100% (97/97), done.
root@s:~|⇒ cd discourse
root@s:~/discourse|master ⇒ ./scripts/install
++ tr -dc _A-Z-a-z-0-9
++ head -c32
++ echo
+ PG_PASSWORD=v0i-qkzWy78r8cXKjZrre_9XY536sQiE
./scripts/install: line 5: MAIL_HOST: unbound variable
root@s:~/discourse|master ⇒ docker-compose up
WARNING: The SUBNET variable is not set. Defaulting to a blank string.
ERROR: Network lb_web declared as external, but could not be found. Please create the network manually using `docker network create lb_web` and try again.
root@s:~/discourse|master ⇒```
The container is trying to hard link to a volume and there is a known issue boot2docker on the mac.
I believe this might be the reason for issue #1
postgres_1 | The files belonging to this database system will be owned by user "postgres".
postgres_1 | This user must also own the server process.
postgres_1 |
postgres_1 | The database cluster will be initialized with locale "en_US.utf8".
postgres_1 | The default database encoding has accordingly been set to "UTF8".
postgres_1 | The default text search configuration will be set to "english".
postgres_1 |
postgres_1 | Data page checksums are disabled.
postgres_1 |
postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1 | creating subdirectories ... initdb: could not create directory "/var/lib/postgresql/data/global": Permission denied
postgres_1 | initdb: removing contents of data directory "/var/lib/postgresql/data"
peddlercore_postgres_1 exited with code 1
Hi there,
Can anyone give a Gmail SMTP configuration ? I cannot make neither my poste.io smtp nor a test gmail account smtp working .... (I get no error anywhere, logs, http response codes, etc.) but I don't receive any mail at all ...
I am stuck at the admin account creation, so frustrating :(
On the instance meta.allmende.io opening my user profile
sends me to
as
returns a 500. What is it that the server doens't like here?
works perfectly from a private tab.
version of the conteiner 2.2.0.beta4
When installing it gave me the error:
==================================================
bundle exec
to your command may solve this.<top (required)>' /home/discourse/discourse/config/application.rb:14:in
<top (required)>'to solve it, I added "bundle exec " to the second "docker-compose run" command.
But I think the real solution would be to fix in the conteiner.
We are testing this setup before decide for a production one.
How can we set discourse plugins to run on this setup?
$ docker-compose run discourse bash -c "sleep 3 && rake db:migrate assets:precompile"
ERROR: No such service: discourse
Am I missing something?
Updating the application with
docker-compose pull
docker-compose stop && docker-compose rm -f
docker-compose run app bash -c "sleep 3 && rake db:migrate assets:precompile"
docker-compose up -d
does not have the intended effect of a running application. Instead, the app
container would always exit with
app_1 | => Booting Puma
app_1 | => Rails 5.1.4 application starting in production
app_1 | => Run `rails server -h` for more startup options
app_1 | /home/discourse/discourse/config/initializers/100-verify_config.rb:29:in `<top (required)>': Assets have not been precompiled (RuntimeError)
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `block in load'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:655:in `block in load_config_initializer'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:654:in `load_config_initializer'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `each'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `block in <class:Engine>'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `each'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `tsort_each_child'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:415:in `call'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `each'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `call'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
app_1 | from /usr/local/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'
app_1 | from /home/discourse/discourse/config/environment.rb:5:in `<top (required)>'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
app_1 | from config.ru:2:in `block in <main>'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `instance_eval'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in `initialize'
app_1 | from config.ru:in `new'
app_1 | from config.ru:in `<main>'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `eval'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in `new_from_string'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in `parse_file'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:319:in `build_app_and_options_from_config'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:219:in `app'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:24:in `app'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:354:in `wrapped_app'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/server.rb:283:in `start'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:44:in `start'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:135:in `block in perfor
m'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
app_1 | from /home/discourse/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
app_1 | from bin/rails:4:in `require'
app_1 | from bin/rails:4:in `<main>'
app_1 |
app_1 | Assets have not been precompiled. Please run the following command
app_1 | before starting the rails server in production mode:
app_1 |
app_1 | rake assets:precompile
app_1 |
app_1 | Exiting
To run it on my desktop I had to execute the following before script/install
export global MAIL_USER=xxxx
export global MAIL_HOST=xxx
export global MAIL_PORT=xxx
export global MAIL_PASS=xxx
export global URL=xxx
where xxx are appropriated values for each parameter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.