pulibrary / firestone_locator

Location Mapper for Firestone Library
2 stars 1 forks source link

Symlink db_settings file #54

Open kevinreiss opened 2 years ago

kevinreiss commented 2 years ago

The db_config.php in the home directory of the application in production and staging should referenced via symlink by the cap deployment routine. We do this for the Drupal applications database credentials file. Example: https://github.com/pulibrary/friends_of_pul/blob/main/config/deploy.rb#L56. Right now the file in the application directory is a standalone file that is ignored by version control and managed via princeton_ansible, https://github.com/pulibrary/princeton_ansible/blob/main/roles/locator/tasks/main.yml#L9. The step to make that file available to the running application needs to be added to capistrano.

carolyncole commented 2 years ago

@kevinreiss I can not remember why, but there may have been a reason for the copy over the symlink. The symlink is the default and I wrote code to not do it: https://github.com/pulibrary/firestone_locator/blob/main/config/deploy.rb#L46-L50

In general when I run ansible I always try and deploy main to make sure everything is in synch. It a good test that all the ansible stuff worked as expected and the system restarted.

That said it would not be hard to try a symlink and if it works keep it...