Skip to content

Commit a7ed8d3

Browse files
committed
Fix script
1 parent e8bbf51 commit a7ed8d3

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.s2i/bin/assemble

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bundle install --path ./bundle --binstubs
1818
export LANG="en_US.UTF-8"
1919

2020
echo "---> Building webpage from source ..."
21-
build_docs
21+
exec $HOME/build_docs
2222

2323
# Fix source directory permissions
2424
echo "---> Fixing permissions ..."

.s2i/httpd-cfg/01-default.conf

+1-4
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,11 @@ AddType text/vtt vtt
120120
Order Allow,Deny
121121
Allow from All
122122

123-
DirectoryIndex welcome.html
124-
125123
RewriteEngine On
126124
RewriteBase /
127125

128126
# Rules have NE added to the end in order to preserve either explicit or implicit # anchor tags
129-
# Not working for some reason
130-
# RewriteRule ^/$ /welcome.html [R=301]
127+
RewriteRule ^$ /welcome.html [R=301,NE]
131128

132129
</Directory>
133130
</IfModule>

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source 'https://rubygems.org'
22

3-
gem 'asciidoctor', '~>1.5.6.2'
3+
gem 'asciidoctor'

deployment-template.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@ objects:
137137
kind: "ImageStreamTag"
138138
name: "stg1-${NAME}:latest"
139139
paths:
140-
- sourcePath: "/opt/app-root/src/welcome.html"
140+
- sourcePath: "/opt/app-root/src/dist/."
141141
destinationDir: "."
142-
- sourcePath: "/opt/app-root/src/images/."
143-
destinationDir: "images/."
144142
- sourcePath: "/opt/app-root/src/.s2i/httpd-cfg/."
145143
destinationDir: "httpd-cfg/."
146144
strategy:

0 commit comments

Comments
 (0)