File tree 2 files changed +28
-11
lines changed
2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
# Clone git repo:
5
- rm -rf /var/www/rudolf
6
- cd /var/www && git clone https://github.com/openbudgets/rudolf.git
5
+ downloadRudolf () {
6
+ echo " Downloading Rudolf-Repository"
7
+ rm -rf /var/www/rudolf
8
+ cd /var/www && git clone https://github.com/openbudgets/rudolf.git
9
+ cp /config/sparql.php /var/www/rudolf/config/sparql.php
10
+ chown -R www-data:www-data /var/www
11
+ chmod oag+rwx -R /var/www
12
+ }
7
13
8
- # Install Rudolf: Run Composer
9
- cd /var/www/rudolf && composer install --no-scripts
14
+ updateRudolf () {
15
+ echo " Updating Rudolf from remote Git-repo"
16
+ cd /var/www/rudolf && git pull origin master
17
+ }
10
18
11
- # Copy config files:
12
- cp /config/sparql.php /var/www/rudolf/config/sparql.php
19
+ installRudolf () {
20
+ echo " Installing Rudolf"
21
+ cd /var/www/rudolf && composer install --no-scripts
22
+ }
13
23
14
- # Set permissions:
15
- chown -R www-data:www-data /var/www
16
- chmod oag+rwx -R /var/www
17
- php artisan cache:clear
18
- php-fpm || tail -f
24
+ startRudolf () {
25
+ echo " Starting Rudolf"
26
+ php artisan cache:clear
27
+ php-fpm
28
+ }
29
+
30
+ # # Execute:
31
+
32
+ [ -f /var/www/rudolf/server.php ] && updateRudolf || downloadRudolf
33
+
34
+ installRudolf && startRudolf
Original file line number Diff line number Diff line change
1
+ cd docker-config && docker-compose logs -f
You can’t perform that action at this time.
0 commit comments