update script and submodule

develop
Baptiste Lemoine 3 years ago
parent 7f8d0685e1
commit 54140bf859
  1. 3
      .gitmodules
  2. 6
      README.md
  3. 1
      funky-framadate-front
  4. 29
      update.sh

3
.gitmodules vendored

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

@ -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.

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

@ -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 "######################"
Loading…
Cancel
Save