Forum d'entraide
#entraide Questions/réponses
Installation : Schéma BD decidim
Bonjour,
J ai suivi la documentation : https://github.com/Platoniq/decidim-install/blob/master/decidim-bionic.md
Je suis arrivé à l'étape : b
in/rails db:create RAILS_ENV=production
bin/rails assets:precompile db:migrate RAILS_ENV=production
in/rails db:create RAILS_ENV=production
bin/rails assets:precompile db:migrate RAILS_ENV=production
Qui s'est exécuté a priori sans probleme
Quand je passe à l'étape :
user = Decidim::System::Admin.new(email: email, password: password, password_confirmation: password)
user = Decidim::System::Admin.new(email: email, password: password, password_confirmation: password)
ou
rails db:setup
j'ai une erreur comme si les schéma et table par défaut n'avaient pas été crées :
ctiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "decidim_system_admins" does not exist)
LINE 8: WHERE a.attrelid = '"decidim_system_admins"':...
^
ctiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "decidim_system_admins" does not exist)
LINE 8: WHERE a.attrelid = '"decidim_system_admins"':...
^
et
Creating seeds for decidim-core...
rails aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "decidim_organizations" does not exist
LINE 1: SELECT "decidim_organizations".* FROM "decidim_organization...
rails aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "decidim_organizations" does not exist
LINE 1: SELECT "decidim_organizations".* FROM "decidim_organization...
Comment installer la database par défaut ?
Signaler un contenu inapproprié
Ce contenu est-il inapproprié ?
13 commentaires
Bonjour,
lorsque vous faites user = Decidim::System::Admin.new(email: email, password: password, password_confirmation: password)
Assurez vous que vous avez démarré la console en mode production :
RAILS_ENV=production bundle exec rails console
Vous devriez pouvoir vérifier quels sont les bases de données avec la commande psql
I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.. 1v1 lol
Your article content is being very much interested, I am very impressed with your post. I hope to receive more great posts. https://www.checkmyrota.org/
Conversation avec Holland
What a fabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. https://www.mybalancenow.page/
nice bloh https://www.komaldas.com/darjeeling-escorts/
Thanks for sharing this information. https://flappy-bird.co
Reading your excellent writings is a genuine pleasure. You seem to put a lot of time and attention into your site. I have it bookmarked and am eager to read more things from it. Continue your wonderful job. https://connectionsgame.io
Your excellent writings are a genuine delight to read. You appear to have devoted considerable time and effort to your website. I have bookmarked it and look forward to reading more from it. Continue your excellent work. https://slopegame.net
myolsd login Portal serves as a single sign-on web portal specifically designed for students, parents, teachers, and administrators to access all educational resources. It also provides a safe and secure connection with an intuitive online learning environment for the students. http://myolsd.top/
I read many articles, but you answered my query very well. https://ehallpass.us
For those seeking innovative solutions to streamline decision-making processes in digital communities, the 'Codex Executor' platform offers a comprehensive suite of tools designed to enhance engagement and efficiency. https://codex.us.com
Conversation avec JoinPD Code
Highly revolutionary shot!
https://joinpd.vip/
You could mention specific commands to check the databases in psql, like \l to list databases or \c database_name to connect to a specific database. https://slope3d.co/
Ajoutez votre commentaire
Pour ajouter votre commentaire identifiez-vous avec votre compte ou créez un compte.
Chargement des commentaires ...