From a9683285823c9b5b532410d22abb52a5c7120d6a Mon Sep 17 00:00:00 2001 From: Richard Fernando Heise Ferreira <rfhferreira@inf.ufpr.br> Date: Tue, 24 Sep 2024 00:32:40 +0000 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 75f12ba..84d562b 100644 --- a/README.md +++ b/README.md @@ -306,6 +306,9 @@ echo "/config/application.yml" >> ~/decidim-app/.gitignore > ``` > - After that you should create commits everytime you make a relevant change. +If you already have a decidim database, you can skip the next step. + + At this point Decidim should be able to start working. Just be sure that your decidim has permission to create a database, this config can be changed in the pg_hba.conf and usually decidim has to be able to connect to "postges" database (default) so it can, only then, create a database. Do not try to create an empty database yourself because the rails db:create task will perform lots of actions, creating keys, tables and configurations unique to the rails framework itself. We need to initialize and update the database by doing this: ```bash @@ -421,7 +424,7 @@ If the menu doesn't display correctly, press '!' Everything looks good. :-) ``` -If the output complains about having 2 copies of passenger installed, then passenger may be using the wrong copy of it. +If the output complains about having 2 copies of passenger installed, then passenger may be using the wrong copy of it. It should tell you if there are conflicts, if so, just uninstall the latter. Let's ensure everything is ok by editing the file `/etc/nginx/conf.d/mod-http-passenger.conf`: @@ -437,7 +440,7 @@ passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini; passenger_ruby /home/decidim/.rbenv/shims/ruby; ### End automatically installed Phusion Passenger config snippet ### ``` - +If you have any doubts just refer to the [nginx passanger page configuration](https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_ruby) Once Nginx & Passenger are installed, we'll configure nginx to point http(s) request to our copy of Decidim. To do that, we need to create an Nginx configuration file and setup a new virtual host with our domain (ie: my-decidim.org): Create/edit the new Nginx config file: -- GitLab