|
@ -55,15 +55,29 @@ RewriteRule ^(.*)$ index.php/\$1 [QSA,L] |
|
|
|
|
|
|
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
## Make the web part aware of were the PHP app is located |
|
|
|
|
|
sed -ri "s%^(\s*require\s+).*(/config/bootstrap.php'\s*;\s*)$%\1'/opt/apps/$SERVICE_NAME\2%" \ |
|
|
|
|
|
"${GOGOCARTO_CODE}"/web/index.php || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
## correct bundles links, these are for static resources (css, js) |
|
|
|
|
|
## offered in PHP dependencies. |
|
|
|
|
|
( |
|
|
|
|
|
cd "${GOGOCARTO_CODE}"/web/bundles |
|
|
|
|
|
for i in *; do |
|
|
|
|
|
link_target=$(readlink "$i") |
|
|
|
|
|
ln -svf "/opt/apps/${SERVICE_NAME}/vendor/${link_target#*/vendor/}" "$i" |
|
|
|
|
|
done |
|
|
|
|
|
) || exit 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config-add " |
|
|
config-add " |
|
|
services: |
|
|
services: |
|
|
$MASTER_TARGET_SERVICE_NAME: |
|
|
$MASTER_TARGET_SERVICE_NAME: |
|
|
volumes: |
|
|
volumes: |
|
|
- $GOGOCARTO_CODE:$GOGOCARTO_DIR:rw |
|
|
|
|
|
- $SERVICE_DATASTORE/var/cache/gogocarto:$GOGOCARTO_DIR/var/cache:rw |
|
|
|
|
|
- $SERVICE_DATASTORE/var/lib/gogocarto/sessions:$GOGOCARTO_DIR/var/sessions:rw |
|
|
|
|
|
- $SERVICE_DATASTORE/var/log/gogocarto:$GOGOCARTO_DIR/var/log:rw |
|
|
|
|
|
|
|
|
- $GOGOCARTO_CODE:/opt/apps/$SERVICE_NAME:rw |
|
|
|
|
|
- $SERVICE_DATASTORE/var/cache/gogocarto:/opt/apps/$SERVICE_NAME/var/cache:rw |
|
|
|
|
|
- $SERVICE_DATASTORE/var/lib/gogocarto/sessions:/opt/apps/$SERVICE_NAME/var/sessions:rw |
|
|
|
|
|
- $SERVICE_DATASTORE/var/log/gogocarto:/opt/apps/$SERVICE_NAME/var/log:rw |
|
|
## Required to give PHP access to this dir |
|
|
## Required to give PHP access to this dir |
|
|
- $upload_dir:$GOGOCARTO_DIR/web/uploads:rw |
|
|
|
|
|
|
|
|
- $upload_dir:/opt/apps/$SERVICE_NAME/web/uploads:rw |
|
|
" |
|
|
" |