mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
Fix dev env setup
This commit is contained in:
parent
f17d788bf6
commit
a5a627dce4
3 changed files with 9 additions and 6 deletions
|
@ -29,7 +29,9 @@ Just run and open http://localhost:4000/
|
|||
|
||||
## Handy commands
|
||||
|
||||
docker-compose -f docker-compose.dev.yml exec -u root web /bin/bash`
|
||||
docker-compose -f docker-compose.dev.yml exec -u web web /bin/bash`
|
||||
docker-compose -f docker-compose.dev.yml exec -u root test /bin/bash`
|
||||
docker-compose -f docker-compose.dev.yml exec -u web test /bin/bash`
|
||||
docker-compose -f docker-compose.dev.yml restart web`
|
||||
docker-compose -f docker-compose.dev.yml exec -u web test bundle exec rspec`
|
||||
|
|
|
@ -29,5 +29,4 @@ RUN bundle config github.https true && \
|
|||
bundle config set path '/var/bundle' && \
|
||||
bundle install --jobs 8
|
||||
|
||||
USER root
|
||||
CMD ["/var/www/bin/script/entry.sh"]
|
||||
|
|
|
@ -2,16 +2,17 @@ version: "3"
|
|||
|
||||
services:
|
||||
web:
|
||||
# Debug
|
||||
command: "bundle exec puma"
|
||||
tty: true
|
||||
stdin_open: true
|
||||
command: /bin/bash
|
||||
tty: true
|
||||
# Debug
|
||||
# command: /bin/bash
|
||||
container_name: ensl_dev
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile.dev
|
||||
args:
|
||||
buildno: 1
|
||||
# args:
|
||||
# buildno: 1
|
||||
volumes:
|
||||
- ".:/var/www/"
|
||||
ports:
|
||||
|
@ -99,5 +100,6 @@ services:
|
|||
|
||||
memcached:
|
||||
image: memcached:latest
|
||||
|
||||
#redis:
|
||||
# image: redis
|
||||
|
|
Loading…
Reference in a new issue