Migrate a XenForo forum to Discourse

아, 다음 단계로 넘어가는 데 성공했습니다. 위에 누군가가 컨테이너에서 /var/www/discourse 폴더로 이동한 후 gem을 추가해야 한다고 게시했습니다.

이제 마지막 단계에서

RAILS_ENV=production bundle exec ruby script/import_scripts/xenforo.rb

이 에러가 나고 있습니다. 제가 뭘 잘못하고 있는 걸까요?

/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:63:in "rescue in new_client": We could not find your database: discourse. Available database configurations can be found in config/database.yml. (ActiveRecord::NoDatabaseError)To resolve this error:- Did you not create the database, or did you delete it? To create the database, run: bin/rails db:create- Has the database name changed? Verify that config/database.yml contains the correct database name.

해결했습니다: root 사용자로 실행하고 있었는데, ‘discourse’ 사용자로 전환해야 했습니다. 가져오기가 시작되었습니다.

4개의 좋아요