HLFH
8 בינואר, 2016, 6:18pm
1
Hi,
I’m using ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux].
I wanted to install Discourse, so after a
sudo -u discourse -s /usr/bin/bash -c "cd /srv/http/discourse; bundle install --no-cache --no-prune --deployment --without development test"
I was running:
sudo -u discourse -s /usr/bin/bash -c "cd /srv/http/discourse; bundle exec rake db:create db:migrate db:test:prepare RAILS_ENV=production"
then at the end, I got:
== Seed from /srv/http/discourse/db/fixtures/500_lounge_category.rb
== Seed from /srv/http/discourse/db/fixtures/501_meta_category.rb
== Seed from /srv/http/discourse/db/fixtures/502_staff_category.rb
== Seed from /srv/http/discourse/db/fixtures/999_settings.rb
== Seed from /srv/http/discourse/db/fixtures/999_topics.rb
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/tasks/database_tasks.rb:144:in `purge'
/srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:347:in `block (3 levels) in <top (required)>'
/srv/http/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.1.10/lib/active_record/railties/databases.rake:353:in `block (3 levels) in <top (required)>'
Tasks: TOP => db:test:load => db:test:purge
It’s with the Master version of Discourse I’m getting this issue and also with some previous tested versions like 1.3.2.
Falco
(Falco)
8 בינואר, 2016, 6:31pm
2
Are you following the only supported way to install discourse?
# Install Discourse on a Cloud Server
> To install and self-host Discourse, follow the steps below. But if you'd rather skip the setup, maintenance, and server management, our official Discourse hosting takes care of everything for you.
>
> 👉 [Learn more about Discourse hosting](https://discourse.org/pricing)
> If you prefer to self-host but need help setting it up we have partners who can help.
> [Click here to explore self-hosting set-up options](https://discourse.org/partners).
**Set up Discourse in the cloud in under 30 minutes** with zero knowledge of Rails or Linux shell. One example
is [DigitalOcean][do], but these steps will work on any **Docker-compatible** cloud provider or local server. This
walkthrough will go through these in detail:
**[Before you start](#before-you-start)**
1. [Preparing your domain name](#1-preparing-your-domain-name)
2. [Setting up email](#2-setting-up-email)
**[Installation](#installation)**
This file has been truncated. show original
HLFH
8 בינואר, 2016, 6:49pm
3
No. I’m on ArchLinux. (It’s a bug to support only Discourse based on an Docker-Ubuntu image). So, could you officially support Discourse based on Docker-ArchLinux image? Or, could you support natively ArchLinux and remove the heavy Docker? I guess it’s a no.
fefrei
(Felix Freiberger)
8 בינואר, 2016, 7:06pm
4
Since Arch Linux supports Docker, Discourse should run just fine on it .
HLFH
8 בינואר, 2016, 7:13pm
5
The Docker image is based only on Ubuntu not on ArchLinux. discourse_docker/image/base/Dockerfile at master · discourse/discourse_docker · GitHub
When we choose ArchLinux, we choose ArchLinux, not Ubuntu…
Seriously, you should support a Docker-ArchLinux image. And btw, it’ll be great to fix the bug above.Thanks
fefrei
(Felix Freiberger)
8 בינואר, 2016, 7:15pm
6
What you’re describing above is not a bug – you are simply not using the supported install method.
Why should you care about the operating system inside the container?
HLFH
8 בינואר, 2016, 7:29pm
7
It’s not an install method. When you use a container, you don’t really install it, you are just bloating your operating system with the bleeding-edge of virtualization and encouraging the laziness of some software developers that prefer their own environment to the environment of their potential users.
So, yes it’s a bug, and yes, it’s your choice to support only an Ubuntu-based Docker image that runs Discourse.
fefrei
(Felix Freiberger)
8 בינואר, 2016, 7:31pm
8
HLFH:
So, yes it’s a bug
If you want to see it like this, feel free to do so. You will be on your own, however: In this forum, we can only support the Docker-based installation.
לייק 1
HLFH
8 בינואר, 2016, 7:33pm
9
Ok. I was using Flarum. I’ll probably migrate to NodeBB.
Discourse is open source.
If you want to do things “your own way” there’s nothing stopping you from doing so.
The main issue is support. The Discourse team has a lot on it’s plate just helping those that are doing things the supported way.
Supporting non-Discourse-supported procedure sounds like a golden business opportunity for you.
8 לייקים
HLFH
8 בינואר, 2016, 8:20pm
11
For Discourse, I’m using only the ArchLinux package from the ArchLinux AUR .
ArchLinux follows the KISS principle unlike Ruby on Rails, Ubuntu or Docker.
Nope, it’s not a golden business opportunity because I’ll migrate to NodeBB that supports ArchLinux.
And Flarum is also a great alternative to Discourse. But it’s currently in Beta and some issues are not fixed, so I’ll choose NodeBB.