Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
moved application scripts to src/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Mar 4, 2016
1 parent 5a9da2c commit f6e49af
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 20 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ ADD src /app/src

# Create folder writable by the application (non-persistent data)
RUN mkdir -p /app/web/assets /app/runtime \
&& chmod 777 /app/web/assets /app/runtime \
&& echo "alias composer='sh /app/src/composer.sh'" >> /root/.bashrc
&& chmod 777 /app/web/assets /app/runtime

RUN chmod -R u+x /app/src/bin
ENV PATH /app/src/bin:${PATH}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ init:

setup: ##@docker setup application packages and database
echo $(COMPOSE_FILE)
$(DOCKER_COMPOSE) run --rm $(PHP_SERVICE) sh src/setup.sh
$(DOCKER_COMPOSE) run --rm $(PHP_SERVICE) setup.sh

clean: ##@docker remove application containers
$(DOCKER_COMPOSE) kill
Expand Down
10 changes: 5 additions & 5 deletions src/giiant-batch.sh → src/bin/giiant-batch.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ yii giiant-batch \
--overwrite=1 \
--tablePrefix=app_ \
--modelDb=db \
--modelNamespace=app\\modules\\prototype\\models \
--modelQueryNamespace=app\\modules\\prototype\\models\\query \
--modelNamespace=app\\modules\\crud\\models \
--modelQueryNamespace=app\\modules\\crud\\models\\query \
--crudAccessFilter=1 \
--crudControllerNamespace=app\\modules\\prototype\\controllers \
--crudSearchModelNamespace=app\\modules\\prototype\\models\\search \
--crudViewPath=@app/modules/prototype/views \
--crudControllerNamespace=app\\modules\\crud\\controllers \
--crudSearchModelNamespace=app\\modules\\crud\\models\\search \
--crudViewPath=@app/modules/crud/views \
--crudPathPrefix= \
--tables=app_html,app_less
2 changes: 1 addition & 1 deletion src/run.sh → src/bin/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

sh /app/src/setup.sh
setup.sh

php-fpm
3 changes: 0 additions & 3 deletions src/setup.sh → src/bin/setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ mkdir -p /app/runtime/mail /app/runtime/cache /app/runtime/debug
./yii migrate --interactive=0 --migrationLookup=${APP_MIGRATION_LOOKUP}
./yii app/setup-admin-user --interactive=0

# TODO: temporary workaround, folders create by appcli, are not writable by appfpm
# TODO: chmod -R 777 /app/web/assets /app/runtime

echo "\nApplication initialized."
8 changes: 0 additions & 8 deletions src/composer.sh

This file was deleted.

0 comments on commit f6e49af

Please sign in to comment.