File tree 4 files changed +12
-2
lines changed
4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
6
6
apt-get install -qq -y build-essential nodejs yarn \
7
7
libpq-dev postgresql-client
8
8
RUN mkdir /myapp
9
+ RUN mkdir /storage
9
10
WORKDIR /myapp
10
11
COPY . /myapp
11
12
RUN gem update --system
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ How to Run
15
15
````
16
16
docker-compose up --build -d
17
17
````
18
+ > mkdir upload folder
19
+ ```bash
20
+ mkdir ~/storage
21
+ ```
18
22
> db setup
19
23
````bash
20
24
docker-compose run web bundle exec rake db:test:load
@@ -38,6 +42,10 @@ How to Run
38
42
docker-compose run --no-deps web bundle exec rake routes
39
43
```
40
44
2. non docker-compose
45
+ > mkdir upload folder
46
+ ```bash
47
+ mkdir ~/storage
48
+ ```
41
49
> bundle
42
50
```bash
43
51
bundle install
Original file line number Diff line number Diff line change 1
1
test :
2
2
service : Disk
3
- root : <%= Rails.root.join("tmp /storage") %>
3
+ root : /storage/test
4
4
5
5
local :
6
6
service : Disk
7
- root : <%= Rails.root.join(" storage") %>
7
+ root : / storage
8
8
9
9
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
10
# amazon:
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ services:
22
22
command : bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
23
23
volumes :
24
24
- .:/myapp
25
+ - ~/storage:/storage
25
26
ports :
26
27
- " 3000:3000"
27
28
depends_on :
You can’t perform that action at this time.
0 commit comments