path correction
This commit is contained in:
parent
a33ed0edb6
commit
6a7b47acc4
@ -39,17 +39,17 @@ msg_ok "Set up database"
|
|||||||
fetch_and_deploy_gh_release "hortusfox" "danielbrendel/hortusfox-web"
|
fetch_and_deploy_gh_release "hortusfox" "danielbrendel/hortusfox-web"
|
||||||
|
|
||||||
msg_info "Configuring .env"
|
msg_info "Configuring .env"
|
||||||
cp /opt/hortusfox-web/.env.example /opt/hortusfox-web/.env
|
cp /opt/hortusfox/.env.example /opt/hortusfox/.env
|
||||||
sed -i "s|^DB_HOST=.*|DB_HOST=localhost|" /opt/hortusfox-web/.env
|
sed -i "s|^DB_HOST=.*|DB_HOST=localhost|" /opt/hortusfox/.env
|
||||||
sed -i "s|^DB_USER=.*|DB_USER=$DB_USER|" /opt/hortusfox-web/.env
|
sed -i "s|^DB_USER=.*|DB_USER=$DB_USER|" /opt/hortusfox/.env
|
||||||
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=$DB_PASS|" /opt/hortusfox-web/.env
|
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=$DB_PASS|" /opt/hortusfox/.env
|
||||||
sed -i "s|^DB_DATABASE=.*|DB_DATABASE=$DB_NAME|" /opt/hortusfox-web/.env
|
sed -i "s|^DB_DATABASE=.*|DB_DATABASE=$DB_NAME|" /opt/hortusfox/.env
|
||||||
sed -i "s|^DB_ENABLE=.*|DB_ENABLE=true|" /opt/hortusfox-web/.env
|
sed -i "s|^DB_ENABLE=.*|DB_ENABLE=true|" /opt/hortusfox/.env
|
||||||
sed -i "s|^APP_TIMEZONE=.*|APP_TIMEZONE=Europe/Berlin|" /opt/hortusfox-web/.env
|
sed -i "s|^APP_TIMEZONE=.*|APP_TIMEZONE=Europe/Berlin|" /opt/hortusfox/.env
|
||||||
msg_ok ".env configured"
|
msg_ok ".env configured"
|
||||||
|
|
||||||
msg_info "Installing Composer dependencies"
|
msg_info "Installing Composer dependencies"
|
||||||
cd /opt/hortusfox-web
|
cd /opt/hortusfox
|
||||||
$STD composer install --no-dev --optimize-autoloader
|
$STD composer install --no-dev --optimize-autoloader
|
||||||
msg_ok "Composer dependencies installed"
|
msg_ok "Composer dependencies installed"
|
||||||
|
|
||||||
@ -78,8 +78,8 @@ msg_info "Configuring Apache vHost"
|
|||||||
cat <<EOF >/etc/apache2/sites-available/hortusfox.conf
|
cat <<EOF >/etc/apache2/sites-available/hortusfox.conf
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /opt/hortusfox-web/public
|
DocumentRoot /opt/hortusfox/public
|
||||||
<Directory /opt/hortusfox-web/public>
|
<Directory /opt/hortusfox/public>
|
||||||
Options Indexes FollowSymLinks
|
Options Indexes FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user