Ricardo Viteri wrote:
How do I execute the following command?
bundle exec rake db:drop db:create db:migrate
Posts: 5
Participants: 3
Ricardo Viteri wrote:
How do I execute the following command?
bundle exec rake db:drop db:create db:migrate
Posts: 5
Participants: 3
Michael Ziluck wrote:
Hello World,
I want to make Discourse run at mydomain.com/forums, instead of having on a subdomain. This is because I have everything hosted on one server, and do not want to have a separate droplet to run my Discourse or website. Is there any way to do this?
Thanks,
~BlizzardFyre
Posts: 5
Participants: 3
Tarak'ha wrote:
I'd be interested in that. Probably plugin territory which is why I'm focusing it on extensbility. I apologize up front since I don't know the proper terminology for discussing JavaScript. But php (and Wordpress) I can do.
My suggestions to build upon @kpfleming's idea is to have a function via a plugin that outputs a readable summary with the above metrics. Perhaps with some custom options, it can have 'tags' for each metric so the summary can be worded differently depending on what the admin wishes (like placeholders?).
With the new theme customization features rolled out, I would think it can be called right into the theme. An analog with Wordpress is a template tag function() that can be called when needed.
Posts: 1
Participants: 1
Francis Brunelle wrote:
I'm looking for a phone number or a way to talk with them fast.
My forum (maidsafe.org) has been down for more than 24 hours.
I've sent them 5 emails (first one was 23 hours ago) and I've had no replies yet. I've had downtime with them before (about 10 times in the last 6 months) and normally it's fixed within 2-3 hours.
Maybe they are still in vacation or something so this would explained why they don't answer.
It's really important for my users (MaidSafe employees, volunteers and enthusiasts) that this forum has as little downtime as possible because we use it to collaborate, have technical discussions and update the community with the latest development updates. There a few hundreds active users on this forum.
What would you do in my situation? Should I just wait for them to answer?
Update: Our forum got attacked and there was an issue with the ticket system of DiscourseHosting so they weren't getting a notification when I emailed them. Everything is fine now!
Posts: 5
Participants: 3
Rahul wrote:
Hi,
I want to create a plugin which will execute a javascript function on page load of personal message and that function will take topic_id and current username as parameter, please let me know how can I do that through a plugin. Thanks
Posts: 1
Participants: 1
Shayden Martin wrote:
After adding my third and fourth site (second and third additional sites in a multisite install), I'm getting the following error for both:
500 Internal Server Error If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.
I've checked the logs, I can't seem to find any errors that would pertain to the above. I have checked the data container and can see that the additional databases are created and configured fine, I can see that the info has been copied over to the multisite file in the web container. And the second site (first multisite) is working fine. Any ideas? I have copied our web and data container files below.
Web:
templates: - "templates/sshd.template.yml" - "templates/web.template.yml" expose: - "80:80" - "2222:22" params: ## Which Git revision should this container use? (default: tests-passed) #version: tests-passed env: LANG: en_US.UTF-8 UNICORN_WORKERS: 3 DISCOURSE_DB_SOCKET: '5432' DISCOURSE_DB_USER: discourse DISCOURSE_DB_PASSWORD: mypassword DISCOURSE_DB_HOST: mydataip DISCOURSE_REDIS_HOST: mydataip DISCOURSE_DEVELOPER_EMAILS: 'mymail@mydomain.com' DISCOURSE_HOSTNAME: 'mydomain.com' DISCOURSE_SMTP_ADDRESS: smtp.mydomain.com DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: mymail@mydomain.com DISCOURSE_SMTP_PASSWORD: mypassword ## The CDN address for this Discourse instance (configured to pull) #DISCOURSE_CDN_URL: //discourse-cdn.example.com #CORS Settings, to enable ajax with json endpoints DISCOURSE_ENABLE_CORS: true DISCOURSE_CORS_ORIGIN: '*' volumes: - volume: host: /var/docker/shared/web guest: /shared - volume: host: /var/docker/shared/web/log/var-log guest: /var/log ## The docker manager plugin allows you to one-click upgrade Discouse ## http://discourse.example.com/admin/docker hooks: before_bundle_exec: - exec: cd: /var/www/discourse/plugins cmd: - mkdir -p plugins - git clone https://github.com/discourse/docker_manager.git after_bundle_exec: - exec: cd: /var/www/discourse cmd: - sudo -E -u discourse bundle exec rake multisite:migrate hooks: #sites before_bundle_exec: - file: path: /var/www/discourse/config/multisite.yml contents: | site2: adapter: postgresql host: mydataip username: discourse password: mypassword database: b_discourse pool: 25 timeout: 5000 db_id: 2 host_names: - site2.mydomain.com site3: adapter: postgresql host: mydataip username: discourse password: mypassword database: c_discourse pool: 25 timeout: 5000 db_id: 3 host_names: - site3.mydomain.com site4: adapter: postgresql host: mydataip username: discourse password: mypassword database: d_discourse pool: 25 timeout: 5000 db_id: 4 host_names: - site4.mydomain.com ## Remember, this is YAML syntax - you can only have one block with a name run: - exec: echo "Beginning of custom commands" ## If you want to configure password login for root, uncomment and change: #- exec: apt-get -y install whois # for mkpasswd ## Use only one of the following lines: #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root ## If you want to authorized additional users, uncomment and change: #- exec: ssh-import-id username #- exec: ssh-import-id anotherusername - exec: echo "End of custom commands" - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'
Data:
templates: - "templates/postgres.template.yml" - "templates/redis.template.yml" - "templates/sshd.template.yml" expose: - "5432:5432" - "6379:6379" - "2221:22" params: db_default_text_search_config: "pg_catalog.english" ## Set db_shared_buffers to 1/3 of the memory you wish to allocate to postgres ## on 1GB install set to 128MB on a 4GB instance you may raise to 1GB db_shared_buffers: "256MB" env: # ensure locale exists in container, you may need to install it LANG: en_US.UTF-8 volumes: - volume: host: /var/docker/shared/data guest: /shared - volume: host: /var/docker/shared/data/log/var-log guest: /var/log hooks: after_postgres: - exec: stdin: | alter user discourse with password 'mypassword'; cmd: sudo -u postgres psql raise_on_fail: false hooks: # site2.mydomain.com after_postgres: - exec: sudo -u postgres createdb b_discourse || exit 0 - exec: /bin/bash -c 'sudo -u postgres psql b_discourse <<< "grant all privileges on database b_discourse to discourse;"' - exec: /bin/bash -c 'sudo -u postgres psql b_discourse <<< "alter schema public owner to discourse;"' - exec: /bin/bash -c 'sudo -u postgres psql b_discourse <<< "create extension if not exists hstore;"' - exec: /bin/bash -c 'sudo -u postgres psql b_discourse <<< "create extension if not exists pg_trgm;"' hooks: #site3.mydomain.com after_postgres: - exec: sudo -u postgres createdb c_discourse || exit 0 - exec: /bin/bash -c 'sudo -u postgres psql c_discourse <<< "grant all privileges on database c_discourse to discourse;"' - exec: /bin/bash -c 'sudo -u postgres psql c_discourse <<< "alter schema public owner to discourse;"' - exec: /bin/bash -c 'sudo -u postgres psql c_discourse <<< "create extension if not exists hstore;"' - exec: /bin/bash -c 'sudo -u postgres psql c_discourse <<< "create extension if not exists pg_trgm;"' hooks: #site4.mydomain.com after_postgres: - exec: sudo -u postgres createdb d_discourse || exit 0 - exec: /bin/bash -c 'sudo -u postgres psql d_discourse <<< "grant all privileges on database d_discourse to discourse;"' - exec: /bin/bash -c 'sudo -u postgres psql d_discourse <<< "alter schema public owner to discourse;"' - exec: /bin/bash -c 'sudo -u postgres psql d_discourse <<< "create extension if not exists hstore;"' - exec: /bin/bash -c 'sudo -u postgres psql d_discourse <<< "create extension if not exists pg_trgm;"'
Thanks in advance for any and all help. To confirm, site2 is working, site3 and site4 aren't and returning the 500 error.
Posts: 10
Participants: 3
Charles Wilmott wrote:
One of the problems I find when trying to get new people
to join my forum is they say "I don't do forums, only instagram, twitter, facebook, tumblr"I think the problem with discourse is the text teasers put people off.
They look too old school for younger audience that's grown up with social media
It would be nice to have a option between text teasers or visual teasersFor example some of my content looks fantastic because it's very visual.
But you couldn't tell this by looking just at the title text
Posts: 16
Participants: 6
Jacob Chapel wrote:
I accidentally deleted a topic that I didn't intend to, when I went back to un-delete it through the mod panel, it didn't appear to do anything. Subsequent clicks of un-delete did nothing as well.
Looking at the admin error logs, I found this:
Error: Nothing handled the action 'recoverTopic'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble. at new Error (native) at Error.n (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:8:3118) at Object.E [as triggerEvent] (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:10:13391) at l (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:15:5757) at Object.u.trigger (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:14:29924) at V.extend.send (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:10:16729) at o.create.send (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:11:16316) at o.create.send (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:11:16316) at http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:9:11716 at Object.s.run (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:5:543)
Posts: 5
Participants: 2
Robin Ward wrote:
As many of you know I've been working on an official plugin to support tagging within Discourse. It was inspired by tagger but at this point has been re-written from scratch.
This topic is to show the very much in progress UX so we can discuss it before we put it live on a site for us to play around with.
You can easily add tags when you create a topic:
Once you do, they are displayed in the header:
(Ignore that my avatar is missing, it's a quirk of my development environment).
Of course you can edit the tags in the header by clicking the pencil:
I think the UX needs a lot of work but the basics are all in place right now for creating/editing tags within topics. You can also edit the tags on a topic by editing the first post, but the UX is the same as the initial post I made.
Thoughts?
Posts: 16
Participants: 8
Stephen Kerr Jr wrote:
Hi,
I am running the current release of Discourse. I added a simple div to the "HTML head" section then attempted to delete and save the now empty "HTML head" section. The save says successful, but the HTML is still showing up on the site. I can replace the HTML with normal text and that saves and changes successfully, but it will not allow me to reset that "HTML head" section back to default (blank). Could this be a bug?
Posts: 3
Participants: 2
If you view a Discourse instance with the Googlebot Useragent so that Discourse prints the instance without JS at the top of a topic it gives a link back to the category in the format
http://example.com/category/category_name
This link then redirects to back to the shorter version,
http://example.com/c/category_name
The issue is if the above category is a subcategory, that second link is a 404, it should be linking to the correct location, ie
http://example.com/c/parent_category/category_name
This issue doesn't appear when you have JS enabled/aren't the Googlebot.
Happy to give and info if wanted! You CAN repeat this on https://meta.discourse.org by using this post for example and CURLing the URL it gives back to the category listing.
macbook-air:~ $ curl -IL https://meta.discourse.org/category/wordpress HTTP/1.1 302 Found Server: nginx Date: Tue, 06 Jan 2015 23:46:22 GMT Content-Type: text/html; charset=utf-8 Status: 302 Found X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Location: https://meta.discourse.org/c/wordpress Set-Cookie: destination_url=https%3A%2F%2Fmeta.discourse.org%2Fcategory%2Fwordpress; path=/; Secure Set-Cookie: _forum_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTZmNWI0ZDRmN2VjMjgwYjcxZDUwYWU1YzBmM2YwOTMwBjsAVA%3D%3D--eec8fe7c8eff16a59a7b780f2f23311498727b2b; path=/; HttpOnly; Secure X-Request-Id: 4ab71e35-9a4f-4bdf-a9f9-b345f42dfb0a X-Runtime: 0.019158 X-UA-Compatible: IE=edge Strict-Transport-Security: max-age=31415926 HTTP/1.1 404 Not Found Server: nginx Date: Tue, 06 Jan 2015 23:46:22 GMT Content-Type: text/html; charset=utf-8 Vary: Accept-Encoding Status: 404 Not Found X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Set-Cookie: destination_url=https%3A%2F%2Fmeta.discourse.org%2Fc%2Fwordpress; path=/; Secure Set-Cookie: _forum_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJThhZTRiNmI3ZTkyNDVmMmE5MjYxNzE1OWNlZmJiNzQyBjsAVA%3D%3D--8c98906a8920b80c989a0cf916802b677fea4ed6; path=/; HttpOnly; Secure X-Request-Id: 4869fed5-535c-4253-a440-4c4f72da1147 X-Runtime: 0.090909 Strict-Transport-Security: max-age=31415926 macbook-air:~ $
Posts: 9
Participants: 5
Tobias Eigen wrote:
On my forum, we have categories in which everyone is required to read every topic. I've been exploring the NEW and "Consider topics new when you haven't viewed them yet" setting which seems to meet this requirement.
However, the process of reading through the list of new topics is cumbersome, especially when there are alot of them to go through. You have to go to NEW, click on a topic and read through it, go back to NEW and click on the next topic, and so on. To speed this up, I suggest adding a keyboard shortcut and link at the bottom of posts to go directly to the next new topic.
Perhaps the "There are 5 unread and 492 new topics remaining, or browse other topics in extensibility." blurbage at bottom could be adjusted to read "There are 5 unread and 492 new topics remaining. Read next new topic or browse other topics in extensibility."
(whoa: an aside. right after spending some time crafting this post, I dragged in a screenshot and it wiped out everything I had written except the first line! and meanwhile it is not displaying the preview on the right properly.)
Meanwhile, it seems to me also that this message, displayed when there are no matching topics, should actually reflect the current settings for the user instead of the default setting. Can this be changed?
Posts: 8
Participants: 4
Bobby wrote:
Whenever I try to start docker I get this error:
Cannot connect to the docker daemon - verify it is running and you have access
Here is some basic infos about the environment I am running docker in:
OS: Ubuntu 12.04Any help is much appreciated. Thanks!
Posts: 4
Participants: 2
Allen - Watchman Monitoring wrote:
Continuing the discussion from Sortable Admin pages:
So that admins can easily review and deal with inactive users, a column listing Inactive users would be very helpful, and also give a clue as to their potential existence.
Posts: 1
Participants: 1
Naveen Aggarwal wrote:
Hi,
In my installed discourse instance while updating Location its simply a Text Field (in editing profile preferences).
But according to ease for user there should be some short of dropdown like location selection or maybe suggest location to user as they type, Quora did the same.
Is there any way to replace it in dropdown way and put all the predefined location in it or maybe the way quora did?
Posts: 2
Participants: 2
Sam Saffron wrote:
My big topic list refactor paved the way for a much richer topic list experience, in past I was terrified to add more feature there due to perf, but now I can go crazy with only a minuscule perf impact
Anyway
I added support for:
https://meta.discourse.org/?filter=bookmarked (open in new tab while I sort out routing bugs)
https://meta.discourse.org/?filter=liked (open in new tab while I sort out routing bugs)I find both these filters incredibly useful, for some people (me) likes are a form of bookmark so having access to this is awesome.
I know it exists in the user pages, but that view is not sortable and not nearly as information dense and totally cramped due to the other UI around the topic list.
I think we should add two links to these filters from the user drop down:
I also think we should add keyboard shortcuts
Thoughs?
Posts: 12
Participants: 5
Helmi wrote:
Hi,
is it possible to use services like Mandrill or Sendgrid for incoming mail, too (for email replies or post by email)? For example Mandrill offers to handle incoming mail and you can define rules what happens with them. Forwarding them to Discourse via the API would be great.
Anyone did that yet? Working somehow?
Thanks,
Frank
Posts: 3
Participants: 2
Liam Austin wrote:
When loading a discussion an error message shows to "try again"
This pops up in the logs:
TypeError: _.merge is not a function
...t){return Discourse.Utilities.avatarImg(_.merge({avatarTemplate:e,size:"tiny"},t...
path:
http://domain/assets/application-38c025322b64ebadb754db3bca4cf1a4.js
Posts: 2
Participants: 2
Tom Wrench wrote:
Has anyone tried to set up Discourse with their Joomla site or can anyone help? I'm wanting to sync users between my Joomla db and Discourse (so those who are registered on my Joomla site can login to Discourse with same credentials (and vice versa).
Thanks in advance for any help.
Posts: 2
Participants: 2
PJH wrote:
Going to a particular /admin/users/USER/badges
In this instance I got the dialog 3 times before the page was usable.
This particular user had 6280 badges listed, but I get this problem with a few users.
Posts: 2
Participants: 2