Commit 3361707f authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

fix the location of bower assets in the docker images

parent e85e145b
"directory": "vendor/assets/components"
"directory": "/opt/bower_components"
......@@ -25,10 +25,10 @@ RUN cd /tmp && chown allgo: /tmp/Gemfile* && su allgo -c "bundle install"
# install bower modules under /opt/bower_components
# (so that they are located in the docker image, even when /opt/allgo is mounted from an external volume)
COPY bower.json /tmp/
COPY bower.json .bowerrc /tmp/
RUN mkdir /opt/bower_components &&\
chown allgo: /opt/bower_components &&\
ln -s /opt/bower_components /tmp/ && cd /tmp && su allgo -c "bower install"
cd /tmp && su allgo -c "bower install"
# install allgo sources + run setup script
COPY . /opt/allgo
......@@ -3,7 +3,7 @@
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.2'
Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets', 'components', '*')
Rails.application.config.assets.paths << '/opt/bower_components'
#Rails.application.config.assets.paths << Rails.root.join("vendor","assets","components","bootstrap","assets","fonts")
# Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path
BowerRails.configure do |bower_rails|
# get the bower modules from the docker image (stored in /opt/bower_components)
bower_rails.bower_components_directory = '../bower_components'
# get the bower modules from the docker image
bower_rails.bower_components_directory = '/opt/bower_components'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment