Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
webschlocker3
Commits
11f0b6c4
Commit
11f0b6c4
authored
Apr 13, 2018
by
Michał 'rysiek' Woźniak
Browse files
asset precompilation has to happen after db is setup, because reasons I guess. eh.
parent
b0d698fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Dockerfile
Dockerfile
+0
-3
entrypoint.sh
entrypoint.sh
+4
-1
No files found.
Dockerfile
View file @
11f0b6c4
...
...
@@ -17,9 +17,6 @@ RUN git clone https://0xacab.org/schleuder/schleuder-web.git /opt/schleuder-web
# remove the default config files
RUN
rm
/opt/schleuder-web/config/schleuder-web.yml /opt/schleuder-web/config/secrets.yml /opt/schleuder-web/config/database.yml
# precompile assets
RUN
cd
/opt/schleuder-web
&&
RAILS_ENV
=
production bundle
exec
rake assets:precompile
COPY
entrypoint.sh /sbin/entrypoint.sh
RUN
chmod
a+x /sbin/entrypoint.sh
...
...
entrypoint.sh
View file @
11f0b6c4
...
...
@@ -245,6 +245,9 @@ else
su
-p
-c
"env PATH=
\"
$PATH
\"
bundle exec rake db:setup RAILS_ENV=production"
"
$WEBSCHLOCKER_USER
"
fi
# precompile assets
su
-p
-c
"env PATH=
\"
$PATH
\"
bundle exec rake assets:precompile RAILS_ENV=production"
"
$WEBSCHLOCKER_USER
"
# make sure the envvars are available within su
export
WEBSCHLOCKER_BIND_ADDRESS WEBSCHLOCKER_BIND_PORT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment