Skip to content
Snippets Groups Projects
Commit a9683285 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Update README.md

parent 720fd34c
Branches
No related tags found
No related merge requests found
...@@ -306,6 +306,9 @@ echo "/config/application.yml" >> ~/decidim-app/.gitignore ...@@ -306,6 +306,9 @@ echo "/config/application.yml" >> ~/decidim-app/.gitignore
> ``` > ```
> - After that you should create commits everytime you make a relevant change. > - 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: 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 ```bash
...@@ -421,7 +424,7 @@ If the menu doesn't display correctly, press '!' ...@@ -421,7 +424,7 @@ If the menu doesn't display correctly, press '!'
Everything looks good. :-) 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`: 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; ...@@ -437,7 +440,7 @@ passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /home/decidim/.rbenv/shims/ruby; passenger_ruby /home/decidim/.rbenv/shims/ruby;
### End automatically installed Phusion Passenger config snippet ### ### 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): 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: Create/edit the new Nginx config file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment