diff --git a/bin/setup_dev b/bin/setup_dev index 018e30a89e..c7b8f70119 100755 --- a/bin/setup_dev +++ b/bin/setup_dev @@ -11,6 +11,9 @@ 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' diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfile index 9fac3bf0ea..35f4a8652d 100644 --- a/docker/dev/backend/Dockerfile +++ b/docker/dev/backend/Dockerfile @@ -21,7 +21,7 @@ RUN apt-get update -qq && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ postgresql-client -COPY ./backend/scripts/seed /usr/sbin/seed +COPY ./backend/scripts/setup /usr/sbin/setup COPY ./backend/scripts/run-app /usr/sbin/run-app EXPOSE 3000 diff --git a/docker/dev/backend/scripts/seed b/docker/dev/backend/scripts/setup similarity index 52% rename from docker/dev/backend/scripts/seed rename to docker/dev/backend/scripts/setup index 2540a9c677..952df6cff2 100755 --- a/docker/dev/backend/scripts/seed +++ b/docker/dev/backend/scripts/setup @@ -5,3 +5,5 @@ set -e bundle install bundle exec rake db:create db:migrate bundle exec rake db:seed +bundle exec rake openproject:plugins:register_frontend +bundle exec rake i18n:js:export