-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad732e8
commit c50c000
Showing
15 changed files
with
74 additions
and
2,613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Dyt5sWlxTT9bZp/f4rOxOezOUzp+wlEI8I18byvPGDOkXIuFYbi7v9POG/vTcBQuZYUg/yfObx991pM8x76ojMkMgQOjGej263BSuQH4PQ75lEZAtR9Q8RHgO8w1Vp2gXOA7uS453sSeO9E9MolF1ic3dgJReNQHCO7bhshiWVtqDDBe4yW3RaVaalgtnCV3pIFGbidg6DvxPP3nkKFmnXsISPyl1NNETY2AGnBsY1i6pjUkYeEihkTtRLcnNOPwPWv9KTJaCarzAqe2aX9ODm5+6eD8XjZiLQPW1sP76QAnDI8AkgMoNB++IYvfKX2JMiVC48dr+dXLb+RRVJqGNbIz4TpBkgceBzWxSMM7UJvzGF/rnMfpyrugE5PhxqBJmd5iJIV9roSDChHHuooZzkelIKt2CvbN22v6--xfVGt6KPBux1aQg7--1M/kkxCkA/kBm3F5W6sm0g== | ||
gmWoTanSJExZbU6z3FqhJ024ZwBUAdy0YXMWU4PMnGMv1OTKR0NwQYONB6ctEI1vJ1Rd/mAMYtIeCYJTSAE4IQ/b1Q7TsVeLmgZg9X1HxR+JAln2wZht+o58aLDCD6t+ZYisaSRDmVg+RlnI7KePP0FVmLFR4mOqOGLZZtAaZMf7LfUsZI378Wb4n3QKBuK7L5ifmanJ7J4tq8vR0K4+FkSGvH7v5A9JgNkOjxCKNQEFrEqAsQMprL82bgvoNOATdtllGOlEXyaagV8OhzRsKdSYUOx3qs0he1RwKkjZkXm/OgEDZN2g/qPY9RBHeYZqJYCpeSRYZ804lqTzUCLSRYA7Ixot6EFKoIUwMwIwZuzcO327BNrI1YrbQ8I69hToYMaXBba2AAguz+plnMMghxXIbgzfM4MPkDSk--txWOlQaNVR/umd+o--+KXJ58m3iNqL0Ogse+vRKw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: "3.8" | ||
services: | ||
web: | ||
build: | ||
context: . | ||
args: | ||
UID: ${UID:-1000} | ||
GID: ${GID:-${UID:-1000}} | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
- RAILS_MASTER_KEY=$RAILS_MASTER_KEY | ||
- DRAGNET_DATABASE_URL=postgres://dragnet:dragnetroot@postgres-db:5433/dragnet | ||
depends_on: | ||
postgres-db: | ||
condition: service_healthy | ||
|
||
postgres-db: | ||
image: postgres | ||
environment: | ||
POSTGRES_USER: dragnet | ||
POSTGRES_PASSWORD: dragnetroot | ||
POSTGRES_DB: dragnet | ||
volumes: | ||
- ./tmp/db:/var/lib/postgresql/data | ||
ports: | ||
- "5433:5432" | ||
healthcheck: | ||
test: pg_isready | ||
interval: 2s | ||
timeout: 5s | ||
retries: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace :docker do | ||
desc 'build docker image' | ||
task :image do | ||
sh "docker build -t dragnet ." | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
EDITOR_SOURCE_PATH = 'app/assets/javascripts/frontend' | ||
FRONTEND_SOURCE_PATH = 'app/assets/javascripts/frontend' | ||
|
||
namespace :frontend do | ||
desc 'start dev server for frontend' | ||
task :server do | ||
sh "cd #{EDITOR_SOURCE_PATH} && npm run watch" | ||
sh "cd #{FRONTEND_SOURCE_PATH} && npm run watch" | ||
end | ||
|
||
desc 'install frontend dependencies' | ||
task :deps do | ||
sh "npm install #{EDITOR_SOURCE_PATH}" | ||
sh "npm install #{FRONTEND_SOURCE_PATH}" | ||
end | ||
|
||
desc 'build frontend for production' | ||
task build: :clean do | ||
sh "cd #{FRONTEND_SOURCE_PATH} && npm run build" | ||
end | ||
|
||
desc 'remove frontend code' | ||
task :clean do | ||
sh "rm -rf public/js/editor && rm -rf public/js/submitter" | ||
end | ||
end |
Oops, something went wrong.