parent
c19d23d9a2
commit
a4038005e8
|
@ -14,9 +14,9 @@ services:
|
||||||
build: ./docker/php-fpm
|
build: ./docker/php-fpm
|
||||||
ports:
|
ports:
|
||||||
- "9001:9000"
|
- "9001:9000"
|
||||||
#volumes:
|
volumes:
|
||||||
# - ./symfony:/var/www/symfony:cached
|
- ./symfony:/var/www/symfony:cached
|
||||||
# - ./logs/symfony:/var/www/symfony/var/logs:cached
|
- ./logs/symfony:/var/www/symfony/var/logs:cached
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
nginx:
|
nginx:
|
||||||
|
@ -48,6 +48,6 @@ services:
|
||||||
- '.:/usr/src/app'
|
- '.:/usr/src/app'
|
||||||
- '/usr/src/app/node_modules'
|
- '/usr/src/app/node_modules'
|
||||||
ports:
|
ports:
|
||||||
- '3000:3000'
|
- '3001:3000'
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
|
@ -3,6 +3,8 @@ FROM node:9.6.1
|
||||||
|
|
||||||
# set working directory
|
# set working directory
|
||||||
RUN mkdir /usr/src/app
|
RUN mkdir /usr/src/app
|
||||||
|
RUN chmod -R 755 /var/www/am-i-late/logs
|
||||||
|
USER $USER
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# add `/usr/src/app/node_modules/.bin` to $PATH
|
# add `/usr/src/app/node_modules/.bin` to $PATH
|
||||||
|
@ -10,6 +12,7 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||||
|
|
||||||
# install and cache app dependencies
|
# install and cache app dependencies
|
||||||
COPY client/package.json /usr/src/app/package.json
|
COPY client/package.json /usr/src/app/package.json
|
||||||
|
#RUN chown -R $USER /usr/src/app
|
||||||
RUN npm install --silent
|
RUN npm install --silent
|
||||||
#RUN npm install react-scripts@1.1.1 -g --silent
|
#RUN npm install react-scripts@1.1.1 -g --silent
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ class Question
|
||||||
private $date;
|
private $date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\OneToMany(targetEntity="App\Entity\Response", mappedBy="question")
|
* @ORM\OneToMany(targetEntity="App\Entity\Response", mappedBy="question", orphanRemoval=true, cascade={"persist", "remove", "merge"})
|
||||||
* @ORM\JoinTable(name="response")
|
* @ORM\JoinTable(name="response")
|
||||||
* @ApiSubresource()
|
* @ApiSubresource()
|
||||||
*/
|
*/
|
||||||
|
@ -66,7 +66,7 @@ class Question
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getText(): string
|
public function getText(): ?string
|
||||||
{
|
{
|
||||||
return $this->text;
|
return $this->text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue