Skip to content

Commit 150a291

Browse files
committed
revert deployment to use cdn
1 parent c9914a2 commit 150a291

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Dockerfile

-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ RUN mkdir -p /home/app/webapp/vendor/bundle && \
6464
# Install npm packages
6565
# build vue component
6666
WORKDIR /home/app/webapp
67-
RUN /sbin/setuser app yarn install --frozen-lockfile && \
68-
cd node_modules/datacite-components && \
69-
yarn install --frozen-lockfile && \
70-
yarn build --dest /home/app/webapp/public/javascripts/dist --target wc --name datacite-components 'src/components/*.vue'
7167

7268
# Install Ruby gems
7369
WORKDIR /home/app/webapp

public/javascripts/dist/datacite-components.min.js

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/layout.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
%link{:rel => 'stylesheet', :href => "//fonts.googleapis.com/css?family=Raleway:400,600,400italic,600italic", :type => 'text/css'}
1111
%link{:rel => 'stylesheet', :href => "//cdnjs.cloudflare.com/ajax/libs/cc-icons/1.2.1/css/cc-icons.min.css", :type => 'text/css'}
1212
%script{:src=>"https://unpkg.com/vue/dist/vue.min.js"}
13-
%script{:type => 'text/javascript', :src => '/javascripts/dist/datacite-components.min.js'}
13+
%script{:type => 'text/javascript', :src => 'https://unpkg.com/datacite-components/dist/datacite-components.min.js'}
1414

1515
- if ENV['CDN_URL']
1616
%link{:rel => 'stylesheet', :href => "#{ENV['CDN_URL']}/stylesheets/datacite.css", :type => 'text/css'}

0 commit comments

Comments
 (0)