testing
This commit is contained in:
parent
2238339553
commit
6cc1f8efda
11
frontend/index.html
Normal file
11
frontend/index.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Worked!</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<center>
|
||||||
|
<h1>If you see this, it worked!</h1>
|
||||||
|
</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
22
ops/apache2/vhost.conf
Normal file
22
ops/apache2/vhost.conf
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
# ServerAdmin webmester@bytedev.co
|
||||||
|
ServerName {{domain}}
|
||||||
|
|
||||||
|
<IfModule mod_expires.c>
|
||||||
|
<FilesMatch "\.(jpe?g|png|gif|js|css)$">
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresDefault "access plus 1 week"
|
||||||
|
</FilesMatch>
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
DocumentRoot "{{workingPath}}/frontend"
|
||||||
|
<Directory "{{workingPath}}/frontend">
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
RewriteRule ^index\.html$ - [L]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule . /index.html [L]
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
</VirtualHost>
|
1061
ops/lib/mo
Executable file
1061
ops/lib/mo
Executable file
File diff suppressed because it is too large
Load Diff
6
ops/provision/deploy.sh
Executable file
6
ops/provision/deploy.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
source ../lib/mo
|
||||||
|
|
||||||
|
apt install -y apache2
|
||||||
|
|
||||||
|
apache_vhost="$(cat ops/apache2/vhost.conf)"
|
||||||
|
echo "$apache_vhost" | mo > /etc/apache2/sites-enabled/000-default.conf
|
8
ops/provision/test.sh
Executable file
8
ops/provision/test.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source ../lib/mo
|
||||||
|
|
||||||
|
apt install -y apache2
|
||||||
|
|
||||||
|
apache_vhost="$(cat ops/apache2/vhost.conf)"
|
||||||
|
echo "$apache_vhost" | mo > /etc/apache2/sites-enabled/000-default.conf
|
2
ops/provision/vals
Normal file
2
ops/provision/vals
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
name="Billy"
|
||||||
|
age="22"
|
Loading…
x
Reference in New Issue
Block a user