Commit 56b5c9ab authored by azul's avatar azul

cleanup: create_a_secret task is not used anymore

parent d2bfe1f9
......@@ -20,7 +20,6 @@ addons:
before_install:
- "bundle --version"
before_script:
- "bundle exec rake create_a_secret"
- "cp config/database.yml.example config/database.yml"
- "bundle exec rake db:create"
- "bundle exec rake db:schema:load"
......
......@@ -68,7 +68,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision 'Install project dependencies', type: 'shell', privileged: false, inline: <<-SHELL
cd /vagrant/
bundle install
rake create_a_secret
SHELL
config.vm.provision 'Connect MySQL DB', type: 'shell', privileged: false, inline: <<-SHELL
......
......@@ -2,11 +2,12 @@
There are three required configuration files:
* config/secret.txt
* config/secrets.yml
* config/database.yml
* config/crabgrass.[production|development|test].yml
The file secret.txt can be created by running <tt>rake create_a_secret</tt>.
secrets.yml comes with useful defaults for test and development environment.
For production you need to set the SECRET_KEY_BASE environment variable.
Configuring database.yml is covered in INSTALL[link:files/doc/INSTALL.html] and PRODUCTION[link:files/doc/PRODUCTION.html].
......
......@@ -87,10 +87,6 @@ Alternatively you can install bundler with your package manager.
cd crabgrass
bundle install
Create a secret
rake create_a_secret
### Create the database
This will also set up your test database. Prior to running the `rake db:create` command, you will need to set up the `crabgrass_development` and `crabgrass_test` databases and configure them in the database.yml file according to your mysql or mariadb set up. In addition, I needed to set up my databases with mariadb with `utf8` encoding. [See here.](https://stackoverflow.com/questions/11644804/rails-creating-schema-migrations-mysql2error-specified-key-was-too-long#13143985)
......
......@@ -2,12 +2,11 @@
There are three required configuration files:
* config/secret.txt
* config/secrets.yml
* config/database.yml
* config/crabgrass.[production|development|test].yml
The file secret.txt can be created by running <tt>rake create_a_secret</tt>.
secrets.yml will read the secret key base from ENV['SECRET_KEY_BASE'] by default.
Configuring database.yml is covered in INSTALL[link:files/doc/INSTALL.html] and PRODUCTION[link:files/doc/PRODUCTION.html].
Depending on what mode rails is run in, the appropriate <tt>crabgrass.*.yml</tt> file will be used. This page is about configuring the <tt>crabgrass.*.yml</tt> files.
......
task :create_a_secret do
puts 'Crabgrass now uses the default rails4 mechanism for storing secrets.'
puts "Please run 'rake secret' and copy the key to the line for your"
puts 'environment in config/secrets.yml.'
puts 'For production you can also set the environments SECRET_KEY_BASE.'
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment