Skip to content

Commit 21ab5b5

Browse files
committed
Merge branch 'develop' of github.com:code-and-effect/effective_website into develop
2 parents f08a3d9 + 1d4de59 commit 21ab5b5

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ test/tours/*.gif
4444
/yarn-error.log
4545
yarn-debug.log*
4646
.yarn-integrity
47+
48+
/config/master.key
49+
50+
# RubeMine
51+
.idea

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
FROM ruby:2.7.1
22

33
# Install 3rd party dependencies.
4-
RUN apt update && apt -y install nodejs
4+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add && \
5+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
6+
apt update && \
7+
apt -y install nodejs \
8+
yarn
59

610
# Working directory.
711
RUN mkdir /app

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
volumes:
77
- .:/app
88
- bundle-volume:/usr/local/bundle
9+
- yarn-volume:/app/node_modules
910
ports:
1011
- "3000:3000"
1112
#- "1234:1234" # RubyMine
@@ -23,4 +24,5 @@ services:
2324

2425
volumes:
2526
bundle-volume:
27+
yarn-volume:
2628
db-volume:

docker-entrypoint.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
#!/bin/sh
1+
#!/bin/bash
2+
23
set -e
34

4-
# For development check if the gems as installed, if not
5-
# then install them.
6-
if ! [ bundle check ]; then
7-
bundle install
8-
fi
5+
bundle install
6+
yarn install --check-files --frozen-lockfile
97

108
# Remove a potentially pre-existing server.pid for Rails.
119
rm -f /app/tmp/pids/server.pid

0 commit comments

Comments
 (0)