Commit 01034361 authored by Jan Rabčan's avatar Jan Rabčan

added init-endpoint to api script.

parent b9230e1b
......@@ -8,26 +8,27 @@ cd /var/www/html/api
if [ -d .git ]; then
git checkout -b test origin/develop
git checkout -b origin/develop
git fetch
git pull
git pull origin develop
rm composer.lock
composer update
else
git clone https://gitlab.kumpacka.eu/kumpacka/weather-station-api.git .
git checkout -b test origin/develop
git clone -b origin/develop https://gitlab.kumpacka.eu/kumpacka/weather-station-api.git .
cp ../.env .
rm composer.lock
composer install
fi
php artisan migrate
chown www-data: storage -R
php artisan migrate
php artisan weather-station:init-endpoint
sleep 10000
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment