stephanediondev / readerself

Replaced by a new version
https://github.com/stephanediondev/feed
Other
158 stars 26 forks source link

DevOps and Readerself, automating deployment. #86

Open rvalle opened 7 years ago

rvalle commented 7 years ago

I am experimenting to automated the deployment of readerself with puppet.

I can install/configure the LAMP software stack, the readerself distribution and create the configuration files:

database.php
readerself_config.php

From parameters configured in puppet / yaml files

However readerself will not create the database structure on start, but instead fail. It wont enter the setup either on first run.

I am not sure what the criteria is for launching the setup process.

Is there anyway to force-create the database structure?

I also noticed that there are some settings stored in the DB vs configuration files. It would be desirable to have defaults from config files as they are easier to automate.

Same goes for LDAP base roles. would be nice to specify an LDAP group for the administators.

stephanediondev commented 7 years ago

You can't reach the setup page if the file readerself_config.php is already created, or precisely if the key "salt_password" exists in this file

I suggest you have a look to the Symfony version of this application (but there is no LDAP support). It wiil be easier to make a deployment script https://github.com/readerself/readerself-symfony

rvalle commented 7 years ago

Yes,

LDAP is a must for us :(

Will keep an eye on it until implemented.



R.

-----Original message----- From: Stéphane Dion notifications@github.com Sent: Tuesday 17th January 2017 17:19 To: readerself/readerself readerself@noreply.github.com Cc: Rafael del Valle rafael@celpax.com; Author author@noreply.github.com Subject: Re: [readerself/readerself] DevOps and Readerself, automating deployment. (#86)

You can't reach the setup page if the file readerself_config.php is already created, or precisely if the key "salt_password" exists in this file

I suggest you have a look to the Symfony version of this application (but there is no LDAP support). It wiil be easier to make a deployment script https://github.com/readerself/readerself-symfony

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

stephanediondev commented 7 years ago

I made a commit on the readerself-symfony version, LDAP is implemented

new parameters

ldap_enabled: false
ldap_server: 'ldap://localhost'
ldap_port: 389
ldap_protocol: 3
ldap_rootdn: 'cn=Manager,dc=my-domain,dc=com'
ldap_rootpw: 'secret'
ldap_basedn: 'dc=my-domain,dc=com'
ldap_search_user: 'mail=[email]'
ldap_search_group_admin: 'cn=admingroup'
rvalle commented 7 years ago

thanks! I will definitely switch. is the DB compatible?

stephanediondev commented 7 years ago

No, it's a new fresh database with innodb, utf8mb4, foreign keys ..

I made 2 commands to import all items and starred items It can be heavy if you have a lot of items on your old installation

bin/console readerself:migration:all-items
bin/console readerself:migration:starred-items

In parameters you must set database_*_old to connect to the old version

And the users are not imported yet