1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

Copy default database and application files during provision

This commit is contained in:
David O' Rojo 2019-08-31 21:53:19 -05:00
parent 48f2d14734
commit fbf5edb64a
2 changed files with 10 additions and 10 deletions

View File

@ -234,14 +234,7 @@ the host can provide but will usually be much more slower than a production envi
yarn install
```
7. Copy the default configuration files:
```bash
cp config/database.yml.virtual config/database.yml
cp config/application.yml.default config/application.yml
```
8. Set up the databases. (Note that you should provide the desired admin credentials and that these
7. Set up the databases. (Note that you should provide the desired admin credentials and that these
specific set of commands must be used to set up the database as some raw SQL instructions are
included in the migrations. Password minimal length is 8 characters):
@ -256,7 +249,7 @@ the host can provide but will usually be much more slower than a production envi
RAILS_ENV=test rake db:migrate
```
9. Start the application and visit `localhost:3000` on your browser to check that it works:
8. Start the application and visit `localhost:3000` on your browser to check that it works:
```bash
foreman s -p 3000

9
Vagrantfile vendored
View File

@ -29,15 +29,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# configuration below for file syncronization
config.vm.synced_folder '.', '/vagrant', type: 'virtualbox'
# Copy default configuration files for the database conenction and the Rails application
config.vm.provision "file", source: "./config/database.yml.virtual", destination: "/vagrant/config/database.yml"
config.vm.provision "file", source: "./config/application.yml.default", destination: "/vagrant/config/application.yml"
## Provision software dependencies
config.vm.provision "shell", privileged: false, run: "once",
path: "provision/zsh_setup.sh"
config.vm.provision "shell", privileged: true, run: "once",
config.vm.provision "shell", privileged: false, run: "once",
path: "provision/box_setup.zsh",
env: {
"LC_ALL" => "en_US.UTF-8",
"LANG" => "en_US.UTF-8",
"LANGUAGE" => "en_US.UTF-8",
}
config.vm.provision "shell", privileged: true, run: "once",
path: "provision/box_tuning.zsh"
end