add migrations
This commit is contained in:
@@ -48,5 +48,6 @@ WORKDIR /app
|
||||
RUN chown -R octane:octane .
|
||||
EXPOSE 80
|
||||
COPY ./supervisord.conf /etc/supervisord.conf
|
||||
ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisord.conf"]
|
||||
COPY ./entrypoint.sh /etc/entrypoint.sh
|
||||
ENTRYPOINT ["/etc/entrypoint.sh"]
|
||||
HEALTHCHECK --start-period=5s --interval=2s --timeout=5s --retries=8 CMD php artisan octane:status || exit 1
|
||||
|
||||
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
php artisan migrate --force
|
||||
php artisan optimize:clear
|
||||
php artisan package:discover --ansi
|
||||
php artisan event:cache
|
||||
php artisan config:cache
|
||||
php artisan route:cache
|
||||
exec supervisord --configuration /etc/supervisord.conf
|
||||
Reference in New Issue
Block a user