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

check dependencies

This commit is contained in:
Tykayn 2021-02-12 16:09:16 +01:00 committed by tykayn
parent d1aa07aca6
commit fe4bcff73e
3 changed files with 33 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{% extends 'base.html.twig' %}
{% block body %}
{% block outerBody %}
<section class="home">
<app-root></app-root>

View File

@ -42,7 +42,11 @@
<td>{{ poll.mailOnVote ? 'Yes' : 'No' }}</td>
<td>{{ poll.hideResults ? 'Yes' : 'No' }}</td>
<td>{{ poll.showResultEvenIfPasswords ? 'Yes' : 'No' }}</td>
<td>{{ poll.password }}</td>
<td>
{% if poll.password %}
(***) oui, caché
{% endif %}
</td>
<td>{{ poll.adminKey }}</td>
<td>
<a href="{{ path('poll_show', {'id': poll.id}) }}">show</a>

View File

@ -11,7 +11,33 @@ composer install
php bin/console doctrine:schema:update --force
echo "######################"
echo " update the funky frontend submodule "
echo "######################"
echo "############################################"
echo " verification des besoins de l'application "
echo "############################################"
if [ ! hash yarn ]; then
echo "la commande yarn est introuvable"
exit 1
fi
echo " ✅ yarn"
if [ ! hash git ]; then
echo "la commande git est introuvable"
exit 1
fi
echo " ✅ git"
if [ ! -f .env || ! -f .env.local ]; then
echo "fichier d'environnement de symfony"
exit 1
fi
echo " ✅ fichier d'environnement de symfony /.env ou /.env.local"
if [ ! -f bin/console ]; then
echo "fichier console de symfony"
exit 1
fi
echo " ✅ fichier console de symfony /bin/console "
if [ ! -d "funky-framadate-front" ]; then
# initiate sub directory for funky front
git submodule init