Skip to content

Commit dec4225

Browse files
committed
Added ~/storage:/storage
1 parent ad8b6c8 commit dec4225

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

Diff for: Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
66
apt-get install -qq -y build-essential nodejs yarn \
77
libpq-dev postgresql-client
88
RUN mkdir /myapp
9+
RUN mkdir /storage
910
WORKDIR /myapp
1011
COPY . /myapp
1112
RUN gem update --system

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ How to Run
1515
````
1616
docker-compose up --build -d
1717
````
18+
> mkdir upload folder
19+
```bash
20+
mkdir ~/storage
21+
```
1822
> db setup
1923
````bash
2024
docker-compose run web bundle exec rake db:test:load
@@ -38,6 +42,10 @@ How to Run
3842
docker-compose run --no-deps web bundle exec rake routes
3943
```
4044
2. non docker-compose
45+
> mkdir upload folder
46+
```bash
47+
mkdir ~/storage
48+
```
4149
> bundle
4250
```bash
4351
bundle install

Diff for: config/storage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
test:
22
service: Disk
3-
root: <%= Rails.root.join("tmp/storage") %>
3+
root: /storage/test
44

55
local:
66
service: Disk
7-
root: <%= Rails.root.join("storage") %>
7+
root: /storage
88

99
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
1010
# amazon:

Diff for: docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
2323
volumes:
2424
- .:/myapp
25+
- ~/storage:/storage
2526
ports:
2627
- "3000:3000"
2728
depends_on:

0 commit comments

Comments
 (0)