1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

update script and submodule

This commit is contained in:
Baptiste Lemoine 2019-12-30 19:12:47 +01:00
parent 7f8d0685e1
commit 54140bf859
4 changed files with 36 additions and 3 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "funky-framadate-front"]
path = funky-framadate-front
url = https://framagit.org/framasoft/framadate/funky-framadate-front.git

View File

@ -15,13 +15,13 @@ you can check that the database connection works with the command:
php bin/console doctrine:schema:validate
```
## Getting started
# Development
install dependencies with Composer
there are examples of request to make it all work.
## Getting started
there are examples of request to make it all work in the [doc/examples.md](doc/examples.md).
### install the vendors
@ -44,7 +44,7 @@ php bin/console server:run
set a virtual host on your server, configure CORS access to have the API to work.
configure database access in a .env.local file , replace variables
DATABASE_URL=mysql://database_user:db_user_password@127.0.0.1:3306/database_name
this file is not versionned
this file is not versionned and should stay like this.
## cronjob to delete expired polls
add this line in your crontab to run the clearance of expired polls everyday at 0h00.

1
funky-framadate-front Submodule

@ -0,0 +1 @@
Subproject commit 0730d4a6ac8d5daccbb877a885b02f0305402906

29
update.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/bash
echo "######################"
echo " time to update the framadate setup"
echo "######################"
git reset --hard
git pull origin master
composer install
php bin/console doctrine:schema:update --force
echo "######################"
echo " update the funky frontend "
echo "######################"
git submodule update
echo "######################"
echo " check dependencies of the frontend with yarn "
echo "######################"
cd funky-framadate-front
yarn
echo "######################"
echo " building the frontend "
echo "######################"
yarn build
echo "######################"
echo " copying built files in the public folder of the symfony project "
echo "######################"
cp -r dist/* public/
echo "######################"
echo " done "
echo "######################"