Browse Source

Adds more enlightenment for switching from development to production; adds vim and less to Dockerfile.

Former-commit-id: a8c6c72a9c
master
Jonathan Rosenbaum 2 years ago
parent
commit
a5a13930e5
  1. 2
      Dockerfile
  2. 11
      README.md

2
Dockerfile

@ -8,7 +8,7 @@ MAINTAINER Jonathan Rosenbaum <bike@bikelover.org>
COPY . /app/BikeBike
RUN apt-get update && apt-get install -y nodejs postgresql-client
RUN apt-get update && apt-get install -y nodejs postgresql-client vim less
# Note: phantomjs has been deprecated in favor of headless chrome
WORKDIR /app/BikeBike

11
README.md

@ -15,21 +15,26 @@ Instructions can be found in docker-compose.yml, and docker-compose.build.
You may easily switch between the production and development environment. One good reason for doing this is that some system administration tasks are handled differently in production. For instance, mail is delayed in production.
Realize you can always do things in the containe:
Realize you can always do things in the container .. the commands without docker-compose, or automate it all with a docker-compose script:
`docker-compose exec bikebike /bin/bash`
### From production to development
### From production to development after changing .env
```
docker-compose down
docker-compose up -d
rake assets:clobber
rake assets:precompile
```
### From development to production
### From development to production after changing .env
```
docker-compose down
docker-compose up -d
rake assets:clobber
rake assets:precompile
rake db:sessions:clear
docker-compose restart bikebike
```
### About that letsencrypt network in docker-compose.yml

Loading…
Cancel
Save