mastodon/config/webpack
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
..
loaders Add improved performance marks for development mode (#3297) 2017-05-25 14:09:55 +02:00
configuration.js [nanobox] Adjustments for Nanobox development (#3295) 2017-05-29 17:59:18 +02:00
development.js Improve eslint rules (#3147) 2017-05-20 17:31:47 +02:00
development.server.js [nanobox] Adjustments for Nanobox development (#3295) 2017-05-29 17:59:18 +02:00
development.server.yml Replace sprockets/browserify with Webpack (#2617) 2017-05-03 02:04:16 +02:00
generateLocalePacks.js Only load Intl data for current language (#3130) 2017-05-22 15:06:06 +02:00
paths.yml Replace sprockets/browserify with Webpack (#2617) 2017-05-03 02:04:16 +02:00
production.js Fix Webpack Bundle Analyzer output for Webpacker (#3374) 2017-05-28 16:26:16 +02:00
shared.js Fix #2922 - Load stylesheet from "custom.css" entrypoint when present (#3332) 2017-05-27 16:55:09 +02:00
test.js Improve eslint rules (#3147) 2017-05-20 17:31:47 +02:00
translationRunner.js Improve eslint rules (#3147) 2017-05-20 17:31:47 +02:00