1
0
Fork 0
forked from fedi/mastodon
mastodon/config
Daniel Hunsaker 9ead3d1cdb [nanobox] Adjustments for Nanobox development (#3295)
Because Nanobox doesn't run data components in the same container as the code, there are a few tweaks that need to be made in the configuration to get WebPack to work properly in development mode.

The same differences lead to needing to use `DATABASE_URL` by default in the `.env` file for Rails to work correctly.

Limitations of our `.env` loader for Node.js mean the `.env` file needs to be compiled everywhere in order to work, so we compile it in development, now, too. Also, all the `.env.production` tweaks have been consolidated into a single command.

Finally, since Nanobox actually creates the database when it sets up the database server, using the existence of the database alone to determine whether to migrate or setup is insufficient. So we add a condition to `rake db:migrate:setup` to check whether any migrations have run - if the database doesn't exist yet, `db:setup` will be called; if it does, but no migrations have been run, `db:migrate` and `db:seed` are called instead (the same basic idea as what `db:setup` does, but it skips `db:create`, which will only cause problems with an existing DB); otherwise, only `db:migrate` is called.

None of these changes should affect development, and all are designed not to interfere with existing behaviors in other environments.
2017-05-29 17:59:18 +02:00
..
environments Set config.cache_store in environments file. (#3219) 2017-05-22 15:01:02 +02:00
initializers Allow alternate domains for mastodon handlers (#3187) 2017-05-22 15:40:04 +02:00
locales Add preference setting for delete toot modal (#3368) 2017-05-29 17:56:13 +02:00
webpack [nanobox] Adjustments for Nanobox development (#3295) 2017-05-29 17:59:18 +02:00
application.rb Set config.cache_store in environments file. (#3219) 2017-05-22 15:01:02 +02:00
boot.rb Adds bootsnap. Faster boot time (#3176) 2017-05-20 19:42:27 +02:00
brakeman.ignore Enable CodeClimate Brakeman checks (#2861) 2017-05-07 02:45:33 +02:00
database.yml Added support parallel_tests (#2740) 2017-05-03 12:20:38 +02:00
deploy.rb Update capistrano lock version to 3.8.1 (#3056) 2017-05-14 17:38:29 +02:00
environment.rb Upgrade to Rails 5.0.0.1 2016-08-17 17:58:00 +02:00
i18n-tasks.yml Localize 'throttled' (#2755) 2017-05-03 23:36:19 +02:00
navigation.rb Replace best_in_place editor on admin settings page (#2789) 2017-05-04 18:12:44 +02:00
puma.rb Do not set port for puma if it is bound to unix socket (#2289) 2017-04-22 01:22:20 +02:00
routes.rb Toggle sensitive from admin page (#3261) 2017-05-23 19:45:43 +02:00
secrets.yml Upgrade to Rails 5.0.0.1 2016-08-17 17:58:00 +02:00
settings.yml Add preference setting for delete toot modal (#3368) 2017-05-29 17:56:13 +02:00
sidekiq.yml Replace mastodon:media:clear and mastodon:feeds:clear rake tasks with (#3180) 2017-05-20 19:42:58 +02:00