DEV: Install all yarn dependencies (#708)
authorDavid Taylor <david@taylorhq.com>
Mon, 24 Apr 2023 10:33:34 +0000 (11:33 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 10:33:34 +0000 (11:33 +0100)
`devDependencies` is often used for things like ember-cli build tooling. Until now we have been moving those things to `dependencies` in our `package.json`, but it makes more sense for us to conform to the industry norms.

image/base/release.Dockerfile
image/base/slim.Dockerfile
templates/web.template.yml

index 9450259ff60f110f6c292e924936f8f5daa37d81..b5f48222dce4a6b9604823f82b32c56295414878 100644 (file)
@@ -8,7 +8,7 @@ RUN cd /var/www/discourse &&\
     sudo -u discourse bundle config --local path ./vendor/bundle &&\
     sudo -u discourse bundle config --local without test development &&\
     sudo -u discourse bundle install --jobs 4 &&\
-    sudo -u discourse yarn install --production --frozen-lockfile &&\
+    sudo -u discourse yarn install --frozen-lockfile &&\
     sudo -u discourse yarn cache clean &&\
     bundle exec rake maxminddb:get &&\
     find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +
index a6edea294e65f148241ee4603b8b4515ec4c4eaf..dbc9cdd6c8fad3bdd79d38de07abd85c52564e8c 100644 (file)
@@ -7,7 +7,8 @@ ENV PG_MAJOR=13 \
     RAILS_ENV=production \
     RUSTUP_HOME=/usr/local/rustup \
     CARGO_HOME=/usr/local/cargo \
-    PATH=/usr/local/cargo/bin:$PATH
+    PATH=/usr/local/cargo/bin:$PATH \
+    LEFTHOOK=0
 
 #LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\""
 
index 10b006e137bce5637822d22f2840be509bd042f8..e37d0d98d56926f9dad26664cfa1fb6ed0bf103e 100644 (file)
@@ -172,7 +172,7 @@ run:
   - exec:
       cd: $home
       cmd:
-        - su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'
+        - su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
 
   - exec:
       cd: $home