Hey guys trying to test a local discourse, I installed successfully but when attempting to run the command in the post_install()
I am getting the following error:
rake aborted!
Errno::EACCES: Permission denied @ dir_s_mkdir - /usr/share/webapps/discourse/app/assets/javascripts/plugins
/usr/share/webapps/discourse/lib/plugin/instance.rb:328:in `ensure_directory'
/usr/share/webapps/discourse/lib/plugin/instance.rb:599:in `activate!'
lib/discourse.rb:224:in `block in activate_plugins!'
lib/discourse.rb:221:in `each'
lib/discourse.rb:221:in `activate_plugins!'
/usr/share/webapps/discourse/config/application.rb:302:in `block in <class:Application>'
/usr/share/webapps/discourse/lib/plugin_initialization_guard.rb:5:in `plugin_initialization_guard'
/usr/share/webapps/discourse/config/application.rb:301:in `<class:Application>'
/usr/share/webapps/discourse/config/application.rb:69:in `<module:Discourse>'
/usr/share/webapps/discourse/config/application.rb:68:in `<top (required)>'
/usr/share/webapps/discourse/Rakefile:7:in `require'
/usr/share/webapps/discourse/Rakefile:7:in `<top (required)>'
/usr/share/webapps/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/bin/bundle:23:in `load'
/usr/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
Also I could not find the file in this line: https://aur.archlinux.org/cgit/aur.git/tree/discourse.install?h=discourse#n14
Thank you!
Pinned Comments
TheGoliath commented on 2020-01-06 12:57
Disclaimer: You can install ruby-bundler and after that install
gem install bundler -v '1.17.3'
as a workaround so far (included in the PKGBUILD)