Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 67423 articles
Browse latest View live

Update site settings in container without browser?

$
0
0

ariddell wrote:

What's the recommended way for adjusting settings like notification_email programatically inside the container without using the browser?

Using launcher enter or launcher ssh and then rails console is hard to automate. I've also tried exposing the postgresql database and doing UPDATE site_settings SET value = 'info@foo.org' WHERE name = 'notification_email'; but the change doesn't take. Perhaps someone could be so kind as to tell me what I'm missing?

(In the main repository I see site_settings.yml but I'm hesitant to mess with that inside the container if there's an easier way.)

Thanks for the excellent work!

Posts: 8

Participants: 4

Read full topic


Images no longer getting lightboxed

$
0
0

Kieran Tracy wrote:

My forum is no longer lightboxing images, either hotlinked or local. Sidekiq is running the PullHotlinkedImages task, and doesn't appear to be failing as I do get a local copy of the remote image (and there are no new failures marked.) However, the lightbox tags aren't getting wrapped around the image, and the only way to see it full size is to open it in a new tab.

I'm not sure when this started happening, but I've got images on there that did get the lightbox tags. Nothing posted recently, though, is getting them.

Any ideas where to look? I've rebuilt the app, git pulled the docker image, I've also just made sure my app.yml is the same as the newer standalone.yml sample (including changing the shared direction location) but no dice.

Here's the relevant (I hope) part of the settings:

Posts: 37

Participants: 8

Read full topic

Beginners Guide to Install Discourse on Ubuntu for Development

$
0
0

Arpit Jalan wrote:

So you want to set up Discourse on Ubuntu to hack on and develop with?

We'll assume that you don't have Ruby/Rails/Postgre/Redis installed on your Ubuntu system. Let's begin!

Although this guide assumes that you are using Ubuntu, but the set-up instructions will work fine for any Debian based ditribution.

(If you want to install Discourse for production use, see our install guide)

Install Discourse Dependencies

Run this script in terminal, to setup Rails development environment:

bash <(wget -qO- https://raw.githubusercontent.com/techAPJ/install-rails/master/linux)

This will install following new packages on your system:

Install Phantomjs:

For 32 bit macine:

cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-i686.tar.bz2
sudo tar xvf phantomjs-1.9.2-linux-i686.tar.bz2
sudo rm phantomjs-1.9.2-linux-i686.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-i686/bin/phantomjs /usr/local/bin/phantomjs
cd

For 64 bit machine:

cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2
sudo tar xvf phantomjs-1.9.2-linux-x86_64.tar.bz2
sudo rm phantomjs-1.9.2-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
cd

In case you have any of this package pre-installed and don't want to run entire script, see the script and pick the packages you don't have currently installed. The script is fine-tuned for Discourse, and includes all the packages required for Discourse installation.

Now that we have installed Discourse dependencies, let's move on to install Discourse itself.

Clone Discourse

Clone the Discourse repository in ~/discourse folder:

git clone https://github.com/discourse/discourse.git ~/discourse

Setup Database

Open psql prompt as postgre user

sudo -u postgres psql postgres

Create role with the same name as your ubuntu system username with discourse as password:

CREATE ROLE discourse WITH LOGIN ENCRYPTED PASSWORD 'discourse' CREATEDB SUPERUSER;

In the above command, I named the role as discourse, this means that my ubuntu system username is discourse. (It is necessary for role name to be same as system username, otherwise migrations will not run)

Check that you have successfully created discourse role:

\du

Create discourse_development and discourse_test database:

CREATE DATABASE discourse_development WITH OWNER discourse ENCODING 'UTF8' TEMPLATE template0;
CREATE DATABASE discourse_test WITH OWNER discourse ENCODING 'UTF8' TEMPLATE template0;

Exit psql prompt by pressing ctrld

Now access psql prompt in discourse_development database as discourse user:

psql -d discourse_development -U discourse -h localhost

When prompted for password, provide the password which you set at the time of creating role, if you followed the guide as is, the password is discourse

Run following commands, separately:

CREATE EXTENSION pg_trgm;
CREATE EXTENSION hstore;

Exit psql prompt by pressing ctrld

Now access psql prompt in discourse_test database as discourse user:

psql -d discourse_test -U discourse -h localhost

When prompted for password, provide the password which you set at the time of creating role, if you followed the guide as is, the password is discourse

Run following commands, separately:

CREATE EXTENSION pg_trgm;
CREATE EXTENSION hstore;

Exit psql prompt by pressing ctrld

You have set-up the database successfully!

Bootstrap Discourse

Switch to your Discourse folder:

cd ~/discourse

Install the needed gems

bundle install

Now that you have successfully configured database connection, run this command:

bundle exec rake db:migrate db:test:prepare db:seed_fu

Now, try running the specs:

bundle exec rake autospec

Start rails server:

bundle exec rails server

You should now be able to connect to discourse app on http://localhost:3000 - try it out!

Configure Mail and Create New Account

We will use MailCatcher to serve emails in development environment. Install and run MailCatcher:

gem install mailcatcher
mailcatcher --http-ip 0.0.0.0

Create new account:

Check confirmation email by going to MailCatcher web interface at http://localhost:1080/

If you did not receive the email, try running this in console: bundle exec sidekiq -q default

Click the confirmation link and your account will be activated!

Access Admin

Now, to make your account as admin, run the following commands in rails console:

RAILS_ENV=development bundle exec rails c
u = User.last
u.admin = true
u.save

Once you execute the above commands successfully, check out your Discourse account again:

Congratulations! You are now the admin of your own Discourse installation!

Happy hacking!

If anything needs to be improved in this guide, feel free to ask on meta.discourse.org, or even better, submit a pull request.

Posts: 37

Participants: 14

Read full topic

SEO - Discourse and original content

$
0
0

Igor Da Cruz wrote:

I have some questions about how the Google Bot considers content done in a forum using the Discourse. Some of these questions already resolved by doing a search for old business. But others still remain.

The most disturbing is related to the recognition of original content and post format. Google will index a informative post like an insertion, for example, a blog or website? The algorithm (Google) will be able to recognize that content as the first and genuine to be inserted into web and will give credibility to it that way even if copied to other sites later?

My idea is to create not just a forum, but also make him a media to publish stories and articles and would like to keep them protected with regards to SEO and achieving organic traffic due to unique content and quality.

Can I trust the Discourse to this idea?

Posts: 1

Participants: 1

Read full topic

Should old topics be deleted from this forum?

$
0
0

David McClure wrote:

This seems worthy of its own discussion topic for the community here to weigh in on in the 'meta' sense (continuing the discussion from Notification when a moderator or admin deletes your message):

What kind of topics should be deleted from this forum? Should they be handled in some other way?

Posts: 7

Participants: 4

Read full topic

Length of suspensions in hours

$
0
0

James Finstrom wrote:

Why are suspensions in days?
Some of my peers think we should be able to do a cool down suspension locking a user out for hours. Can suspension be made that flexible? We don't use em often and want to be less harsh when we have to.

Posts: 3

Participants: 3

Read full topic

"Questionable" account checks at the time of signup?

$
0
0

Jeff Atwood wrote:

Why do that, when you can use "Project Honeypot", that does it in a much better, distributed way.

We can also check IP address during the registration, to require admin approval:
http://www.projecthoneypot.org/

The best part is that you do all the checks with simple DNS requests that will be cached by your DNS provider.

I'm sorry for not suggesting this first (I just came around it a few days ago). @codinghorror, do you think this can be added?

Posts: 6

Participants: 3

Read full topic

Notification when a moderator or admin deletes your message


Automated Flag Messages Should Reflect Reason for Flagging

$
0
0

Lowell Heddings wrote:

Just had a message from a forum user who had no idea why his post was flagged and hidden (it was flagged for being off-topic), and after looking at the message I realized... nowhere in this automated message do we tell the person whether their post was off-topic, or spammy, or offensive.

To make it worse, the message says "please consider how you might revise your post to reflect their feedback" even though that feedback is not displayed on the page.

Posts: 4

Participants: 2

Read full topic

Flag requirements are not looking at disposition

$
0
0

Sam Saffron wrote:

Continuing the discussion from Feature Request: Banned Users Prevent Promotion:

 def num_flagged_posts
    PostAction.with_deleted.where(post_id: flagged_post_ids).where.not(user_id: @user.id).pluck(:post_id).uniq.count
  end

So, for example, if I go an flag 5 posts of a user I hate, regardless of flag disposition (mod can disagree), this user will not make it to leader for the next 100 days

This should be fixed.

cc @zogstrip @neil

Posts: 6

Participants: 4

Read full topic

Some static content not being served by CDN

$
0
0

Aahan Krish wrote:

Some static content/files are not being served by CDN, these include (but maybe not only):

/images/default-favicon.ico
forum.example.com/uploads/default/*/*.ico (custom favicon)
forum.example.com/uploads/default/*/*.png (custom apple-touch-icon)
/images/default-apple-touch-icon.png
/uploads/stylesheet-cache/desktop_*.css
/uploads/stylesheet-cache/*.css?abcdefghijklmnopqrst (custom css)
/images/d-logo-sketch.png

These should be served by the CDN too, shouldn't they?

Posts: 2

Participants: 2

Read full topic

Cannot enter site settings

Links to invisible topics are visible in a user's activity history

Sorting by users seems inconsistent

$
0
0

Memory Hole wrote:

What is this meant to be doing? It looks like it tries to sort by the number of contributors. But sorting in ascending ends up with multi-user topics sorted in with single user topics.

Is this a bug or just some other weird sorting metric? I'm not sure I understand the use case for doing this in the first place.

Posts: 1

Participants: 1

Read full topic

What's more important on the categories page, topic count or post count?

$
0
0

Jeff Atwood wrote:

I was thinking about axing one of the default columns on the /categories page:

As you can see, we show both topic count and post count per interval.

That feels like a bit too much information by default to me. Example: http://discuss.tractionbook.com/

If you had to make a case for one of those columns being more useful than the other, which would it be? If you're browsing categories, is it more useful to know the number of new posts in that category per week or new topics in that category per week?

Defend your choice!

Posts: 3

Participants: 3

Read full topic


Discourse for iOS

$
0
0

Ed Lafoy wrote:

We've created a native mobile app for iOS that can be found here:

It allows some of the core features such as viewing topics, categories, comments, and favorites, as well as creating new topics and messages. It also supports multiple Discourse accounts.

Although Apple won't let us brand it as a beta, it's still in a beta phase. We were interested in getting some feedback from the community.

It would be really great to also get some type of notice of API changes here in case of future API changes revolving around the features that the app uses as well, if it's possible.

Thoughts?
Thanks!

Ed

Posts: 42

Participants: 18

Read full topic

What IDE is everyone using?

$
0
0

cpradio wrote:

Okay, so I'm an IDE junkie (yeah yeah, I blame the Microsoft frameworks). So what IDE does everyone use for their development?

Considering I'm completely new to ember.js and ruby, having a good IDE that will help me minimize my mistakes, is ideal.

My system setup:
Main PC: Debian Linux Wheezy
Laptop: Windows 7

Ideally, the IDE should run on both, but 99% of my development will be on my main PC, so if it only supports Linux, that's cool too.

Currently, I've been using phpStorm, but obviously that is built for PHP development. I love the IDE, but spending extra to get get Ruby and PHP support might be a show stopper (I need to price that out).

Posts: 14

Participants: 12

Read full topic

How are you using Discourse

$
0
0

AstonJ wrote:

@stu1's post in another thread got me thinking - how are people using DC apart from just as a vanilla DC install?

  • Have you hacked it to do more than just a forum?
  • Have you got lots of custom plug-ins?
  • Or have you styled it so it's almost unrecognisable?
  • Or?

Just curious stuck_out_tongue

Posts: 1

Participants: 1

Read full topic

Searching for the topic/post by ID?

$
0
0

Ronteras wrote:

Title says it all. Can Discourse have the feature that allows users to search for the topic or post by its ID? Just like pasting 19084 in the search will show this topic?

Posts: 3

Participants: 2

Read full topic

Is there a test database with a larger number of posts/users?

$
0
0

Tomosovich wrote:

Hey guys,

I'm looking to run some stress testing on a discourse test environment. Is there a pre populated database that I could load into the install to facilitate some stress testing. I'm just looking to learn how it scales so I can see when I would need to scale the server that it is running on. Thanks in advance for any suggestions.

Posts: 2

Participants: 2

Read full topic

Viewing all 67423 articles
Browse latest View live