Skip to content

Commit

Permalink
fix(build): Prime the yarnd node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
merkata committed Dec 5, 2023
1 parent 62d32de commit 2978eaa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions discourse_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ parts:
sed -i 's/rexml (3.2.5)/rexml (3.2.6)/' Gemfile.lock
# The following is a fix for https://github.com/discourse/discourse-prometheus/blob/72fff206ba18ad5ca3112fed2f5f0ce6a17ca6f8/plugin.rb#L13C1-L13C105
sed -i "s/gem 'prometheus_exporter', .*/gem 'prometheus_exporter', '0.5.0'/g" Gemfile
yarn install --verbose --immutable
build-packages:
- git
- libpq-dev
- libssl-dev
organize:
"*.*": srv/discourse/app/
"*": srv/discourse/app/
Expand Down Expand Up @@ -233,12 +228,16 @@ parts:
bin/bundle install --gemfile="plugins/discourse-prometheus/Gemfile"
bin/bundle install --gemfile="plugins/discourse-solved/Gemfile"
chown -R 584792:584792 vendor/bundle
yarn install --immutable
chown -R 584792:584792 app/assets/javascripts/node_modules
perms:
plugin: nil
after: [tooling, discourse, setup]
override-prime: |
craftctl default
mkdir -p var/lib/pebble/default/.npm
mkdir -p var/lib/pebble/default/.cache
touch var/lib/pebble/default/.yarnrc
chown -R 584792:584792 var/lib/pebble/default/.npm
chown -R 584792:584792 var/lib/pebble/default/.cache
chown 584792:584792 var/lib/pebble/default/.yarnrc

0 comments on commit 2978eaa

Please sign in to comment.