Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training mahdy #3

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ vendor/
data/cache/*
!data/cache/.gitkeep
phpunit.xml
/.idea/
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM php:7.0-apache
RUN apt-get update \
&& apt-get install -y git zlib1g-dev \
&& docker-php-ext-install zip \
&& docker-php-ext-install pdo_mysql \
&& a2enmod rewrite \
&& sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
&& mv /var/www/html /var/www/public \
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ images it requires. For subsequent runs, the start up time should be much faster

3. View the test page:
http://localhost:8080/

4. change data/DoctrineORMModule/Proxy permission to be writable
or run this command:
or run deploy.sh inside docker container
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
"require": {
"php": "^7.0",
"zendframework/zend-component-installer": "^1.0",
"zendframework/zend-mvc": "^3.0.1"
"zendframework/zend-mvc": "^3.0.1",
"doctrine/doctrine-orm-module": "^1.1"
},
"autoload": {
"psr-4": {
"Application\\": "module/Application/src/"
"Application\\": "module/Application/src/",
"Product\\": "module/Product/src/",
"Category\\": "module/Category/src/"
}
},
"autoload-dev": {
Expand Down
Loading