You are not logged in.
I built https://aur4.archlinux.org/packages/discourse/
[discourse@chris-pc discourse]$ RAILS_ENV=production bundle exec rake discourse:setup --trace
rake aborted!
Don't know how to build task 'discourse:setup'
/usr/lib/ruby/2.2.0/rake/task_manager.rb:62:in `[]'
/usr/lib/ruby/2.2.0/rake/application.rb:149:in `invoke_task'
/usr/lib/ruby/2.2.0/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/lib/ruby/2.2.0/rake/application.rb:106:in `each'
/usr/lib/ruby/2.2.0/rake/application.rb:106:in `block in top_level'
/usr/lib/ruby/2.2.0/rake/application.rb:115:in `run_with_threads'
/usr/lib/ruby/2.2.0/rake/application.rb:100:in `top_level'
/usr/lib/ruby/2.2.0/rake/application.rb:78:in `block in run'
/usr/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/usr/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/usr/bin/rake:33:in `<main>'
The package maintainer does not have this problem
I feel like I'm missing something, but I'm probably just noobing out.
I know next to nothing of ruby (or docker, I tried that way first), anyone knows what's going on here?
Offline
Hi, I am the maintainer. Currently just in my phone. Did you invoke that command in /usr/share/webapps/discourse and AS the discourse user?
Every time I see some piece of medical research saying that caffeine is good for you, I high-five myself. Because I'm going to live forever. -- Torvalds, Linus (2010-08-03).
Offline
I have installed my discourse almost a year ago, so I don't remember the setup command. I think you have misspelled the setup command. You can list all known rake tasks with:
RAILS_ENV=production bundle exec rake -T
Every time I see some piece of medical research saying that caffeine is good for you, I high-five myself. Because I'm going to live forever. -- Torvalds, Linus (2010-08-03).
Offline
Moving to AUR Issues...
Offline
Yeah I figured it was best not to spam aur with support questions.
I used the command from your post_install()
sudo -u discourse -s /usr/bin/bash -c "cd /usr/share/webapps/discourse; bundle exec rake discourse:setup RAILS_ENV=production"so that might need updating. I also tried switching to the user and running it from there. rake -T doesn't return anything that looks similar. I assumed the discourse:setup was something you yourself had made, since I can't find it on google anywhere, but maybe it's just outdated?
I've tried following and adjusting where necessary the ubuntu / ubuntu for developers unofficial install methods, but I still can't figure out what to rake now. I setup a postgres role also called discourse. with a discourse_prod database (not sure if this is necessary or if some rake command should do this)
My guess would be
bundle exec rake db:migrate db:test:prepare db:seed_fuit's from the ubuntu guide. But that just gives me
[discourse@chris-pc discourse]$ bundle exec rake db:migrate db:test:prepare db:seed_fu --trace
rake aborted!
LoadError: cannot load such file -- qunit-rails
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runtime.rb:76:in `require'
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runtime.rb:72:in `each'
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runtime.rb:72:in `block in require'
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runtime.rb:61:in `each'
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler/runtime.rb:61:in `require'
/usr/lib/ruby/gems/2.2.0/gems/bundler-1.10.4/lib/bundler.rb:134:in `require'
/usr/share/webapps/discourse/config/application.rb:15:in `<top (required)>'
/usr/share/webapps/discourse/Rakefile:5:in `require'
/usr/share/webapps/discourse/Rakefile:5:in `<top (required)>'
/usr/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/usr/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/usr/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/usr/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
/usr/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/usr/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
/usr/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
/usr/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/usr/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/usr/bin/rake:33:in `<main>'Once this is finished I'm gonna make a wiki entry for discourse ^_^
Last edited by thisischrys (2015-06-23 10:43:30)
Offline
I really hate that rails crap. For the install command there are some gems missing... There are indeed too less gems for running rake properly. Since I bundle Gemfile.lock it *shold* be fine, though. ![]()
edit: Maybe we could fix the bundle command in the PKGBUILD to sth. like this instead:
bundle install --path vendor/bundleLast edited by rumpelsepp (2015-06-23 20:07:33)
Every time I see some piece of medical research saying that caffeine is good for you, I high-five myself. Because I'm going to live forever. -- Torvalds, Linus (2010-08-03).
Offline
I tried that, it still doesn't build. Running it through bitnami now, though I'd much prefer an updated AUR package. But I don't know enough to get it to work.
Offline