Skip to content
Snippets Groups Projects

Adding .htaccess

Closed mathieu.dartigues requested to merge 36-apache into main
+ 5
4
@@ -103,10 +103,11 @@ deploy:
- apt install rsync -y
- echo "Will deploy to ${DELIVERY_DIRECTORY}"
- |
echo "<Directory "/var/www/html/$DELIVERY_DIRECTORY"> |
FallbackResource /$DELIVERY_DIRECTORY/index.html |
</Directory>" >> ./dist/.htaccess
- echo "
<Directory "/var/www/html/$DELIVERY_DIRECTORY">
FallbackResource /$DELIVERY_DIRECTORY/index.html
</Directory>
" >> ./dist/.htaccess
- ssh gitlab@so-frontend-dev.irit.fr "rm -rf /var/www/html${DELIVERY_DIRECTORY}"
- rsync -ravP --delete ./dist/ gitlab@so-frontend-dev.irit.fr:/var/www/html${DELIVERY_DIRECTORY}/
Loading