![]() home/hhyyrylainen/.gem/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_handling.rb:309:in `connection_pool': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)įrom /home/hhyyrylainen/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management/rails_61_compat.rb:8:in `current'įrom /home/hhyyrylainen/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:115:in `current_db_hostnames'įrom /home/hhyyrylainen/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:111:in `current_hostname'įrom /home/hhyyrylainen/Projects/discourse/lib/discourse.rb:232:in `handle_job_exception'įrom /home/hhyyrylainen/Projects/discourse/lib/scheduler/defer.rb:114:in `rescue in do_work'įrom /home/hhyyrylainen/Projects/discourse/lib/scheduler/defer.rb:113:in `do_work'įrom /home/hhyyrylainen/Projects/discourse/lib/scheduler/defer.rb:85:in `block (2 levels) in start_thread'įrom /home/hhyyrylainen/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:79:in `with_connection'įrom /home/hhyyrylainen/Projects/discourse/lib/scheduler/defer.rb:96:in `do_work' # terminated with exception (report_on_exception is true): (removal in Discourse 3.0)Īt /home/hhyyrylainen/Projects/discourse/lib/site_setting_extension.rb:199:in `public_send` Please use `SiteSetting.personal_message_enabled_groups` instead. ![]() Git config -global neverĪfter that I ran into an error like this when running db:migrate: At /home/hhyyrylainen/Projects/discourse/lib/site_setting_extension.rb:199:in `public_send`ĭeprecation notice: `SiteSetting.enable_personal_messages` has been deprecated. I don’t know what’s the proper way to do this, but you can temporarily allow the unsafe transport: git config -global always The error happens when trying to install the sprockets gem and ends with the message: transport 'file' not allowed I ran into an issue trying to run bundle install as Fedora now has by default disabled file transport. You should now be able to see the Discourse setup page at For further setup, see the existing official install guides. Run the application bundle exec rails server Test installation by running the tests bundle exec rake autospec RAILS_ENV=test bundle exec rake db:create db:migrate Install Discourse dependencies bundle installĬreate the required databases and load the schema bundle exec rake db:create db:migrate Install Ruby dependencies gem update -systemĬlone Discourse code git clone ~/discourse Git clone "$(rbenv root)"/plugins/ruby-build Printf 'eval "$(rbenv init -no-rehash)"\n' > ~/.bashrc Printf 'export PATH="$HOME/.rbenv/bin:$PATH"\n' > ~/.bashrc Installing rbenv, ruby-build, and ruby git clone ~/.rbenvĬd ~/.rbenv & src/configure & make -C src Install and setup redis sudo dnf install redis ![]() Sudo postgresql-setup -initdb -unit postgresql Install and setup postgres sudo dnf install postgresql-server postgresql-contrib Install required npm packages sudo npm install -g svgo yarn Sudo dnf install -y git rpm-build zlib-devel ruby-devel readline-devel libpq-devel ImageMagick sqlite sqlite-devel nodejs npm curl gcc g++ bzip2 openssl-devel libyaml-devel libffi-devel zlib-devel gdbm-devel ncurses-devel optipng pngquant jhead jpegoptim gifsicle Install required system and development packages sudo dnf update If you’re looking to install Discourse for a production environment, prefer the docker install instructions on github. The assumption is that you do not have any of the packages installed already, although most will be skipped by the tooling if it is already installed. This is largely based on the Ubuntu development guide, with changes for the different packages for dnf. This is not an official guide but may be useful for other developers using Fedora. This guide has been tested against a fresh install of Fedora 31 and 33, but may work on older versions that also use dnf as the package management tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |