Add .htaccess file and copy it in pipeline
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d3ecbba6f4
commit
0429ef9c4a
|
@ -27,6 +27,7 @@ steps:
|
|||
commands:
|
||||
- npm install
|
||||
- npm run build:production
|
||||
- cp /drone/src/.htaccess /drone/src/dist/wahlrecht-frontend/
|
||||
- name: rebuild-cache
|
||||
privileged: true
|
||||
image: 2martens/drone-volume-cache
|
||||
|
@ -58,6 +59,7 @@ steps:
|
|||
- rm -rf html/*
|
||||
- cp -r tmp/build/* html/
|
||||
- rm -rf tmp/build
|
||||
- restorecon -R -v html
|
||||
- name: notify
|
||||
pull: always
|
||||
image: 2martens/drone-email
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
RewriteEngine On
|
||||
|
||||
RewriteBase /
|
||||
|
||||
RewriteRule ^../index\.html$ - [L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule (..) $1/index.html [L]
|
||||
|
||||
RewriteCond %{HTTP:Accept-Language} ^de [NC]
|
||||
RewriteRule ^$ /de/ [R]
|
||||
|
||||
RewriteCond %{HTTP:Accept-Language} ^!de [NC]
|
||||
RewriteRule ^$ /en/ [R]
|
Loading…
Reference in New Issue