Skip to content

Commit

Permalink
Serve dev and prod from same dir on server
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Dec 12, 2023
1 parent a273b2d commit 0f97662
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy website to dev server

on:
push:
branches-ignore:
- main
push:
branches-ignore:
- main

jobs:
deploy:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
public/
.hugo_build.lock
resources/_gen/
www/
www-dev/
8 changes: 4 additions & 4 deletions apache/dev.website.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
SSLCertificateChainFile /etc/letsencrypt/live/dev.ff.berlin/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/dev.ff.berlin/privkey.pem

DocumentRoot /var/www/dev.berlin.freifunk.net/www/dev
DocumentRoot /var/www/berlin.freifunk.net/www-dev

<Directory "/var/www/dev.berlin.freifunk.net/www">
<Directory "/var/www/berlin.freifunk.net/www-dev">
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>

ErrorLog "/var/log/apache2/dev.berlin.freifunk.net-error.log"
CustomLog "/var/log/apache2/dev.berlin.freifunk.net-access.log" combined
ErrorLog "/var/log/apache2/berlin.freifunk.net-error.log"
CustomLog "/var/log/apache2/berlin.freifunk.net-access.log" combined
</VirtualHost>

0 comments on commit 0f97662

Please sign in to comment.