Closed thomasdziedzic closed 3 years ago
You have to create the file yourself. The instruction is in the README of the main lobsters repo https://github.com/lobsters/lobsters/blob/master/README.md
Create a MySQL (other DBs supported by ActiveRecord may work, only MySQL and MariaDB have been tested) database, username, and password and put them in a config/database.yml file.
Ah, so a vagrant up is expected to fail during the first pass? I can work with that, but is there any way to set it up so that it automatically sets up a file so that beginner's don't have to worry about expected failures?
I'm used to chef, and I always had it setup so that my tests always passed, even if I had to setup dummy passwords for testing such that the initial run will always work out of the box.
@jstoja Do you want to chime in on this? I don't think it's been touched much since #10.
Started to fix it, but hit #68. All in all, the configuration file should probably be templated by Ansible in the future.
Since it contains secrets, this kind of information should be stored in ansible-vault
(AES256).
I've removed the Vagrantfile
because I don't know how to maintain it. Like with the Docker repo and our Rails app, I'd prefer to link to an external repo.
I cloned this repo for the first time and ran
vagrant up
on ubuntu 18.04.I got the following error:
It looks like out of the box, it's cloning the lobsters git repo and then running db:migrate without creating a
config/database.yml
which results in the error.How am I supposed to set up this repo so that it cleanly runs?