mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
5f45ee07ab
* Move development docker-compose file to the main directory This requires us to move some other files around, like the pullpreview and example docker-compose file for production setups. This commit also does some housekeeping, like removing some old files and deduping configuration. * Updated to selenium grid * Fix in-Docker Selenium tests The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not guaranteed, though it should not be hard to implement with a couple of small fixes. * Updated docker development documentation * Improved test timings, changed the documentation * Updated docker testing again * Run npm in the frontend directory * Really run npm in the frontend directory * Also run npm in frontend when setting up travis cache * Change directory for one command only * Change default test driver name * CI test change fixes * Fixed syntax error * Added dev check * Trying to fix firefox resizing * Trying to get tests running * Stop resizing firefox * Fixed apple icon spec * fix host in url helpers for omniauth spec * Fix omniauth specs * Fix docs * Small fixes to docker tests * Added package.json back in * Change env variables Co-authored-by: Markus Kahl <machisuji@gmail.com>
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Deletes bundled javascript assets and rebuilds them.
|
|
# Useful for when your frontend doesn't work (jQuery not defined etc.) for seemingly no reason at all.
|
|
|
|
yell() { echo -e "$0: $*" >&2; }
|
|
die() { yell "$*"; exit 1; }
|
|
try() { eval "$@" || die "\n\nFailed to run '$*', check log/setup_dev.log for more information."; }
|
|
|
|
printf "Bundling rails dependencies ... "
|
|
try 'bundle install > log/setup_dev.log'
|
|
echo "done."
|
|
|
|
echo "Installing node_modules ... "
|
|
try 'npm install --no-shrinkwrap >> log/setup_dev.log'
|
|
|
|
echo "Linking plugin modules"
|
|
try 'bundle exec rake openproject:plugins:register_frontend >> log/setup_dev.log'
|
|
|
|
echo "Exporting frontend locale files"
|
|
try 'bundle exec rake i18n:js:export >> log/setup_dev.log'
|
|
|
|
echo "---------------------------------------"
|
|
echo "Done. Now start the following services"
|
|
echo '- Rails server `RAILS_ENV=development ./bin/rails s`'
|
|
echo '- Angular CLI: `npm run serve`'
|
|
echo ""
|
|
echo 'You can also run `foreman start -f Procfile.dev` to run all the above on a single terminal.'
|
|
|
|
|