Skip to content

Commit e29a885

Browse files
committed
update render-start.sh
1 parent 3f0a4ec commit e29a885

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ FROM daveearley/hi.events-all-in-one
22

33
COPY render-start.sh /render-start.sh
44
RUN chmod +x /render-start.sh
5-
RUN /render-start.sh
5+
6+
CMD ["/render-start.sh"]
7+

render-start.sh

+1-17
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,4 @@ export VITE_API_URL_SERVER=http://localhost:80/api
55
export VITE_FRONTEND_URL=$RENDER_EXTERNAL_URL
66
export VITE_STRIPE_PUBLISHABLE_KEY=$STRIPE_PUBLISHABLE_KEY
77

8-
cd /app/backend
9-
10-
if ! php artisan migrate --force; then
11-
echo "\033[0;31mERROR: Migrations could not complete. Check the error above.\033[0m"
12-
echo "\033[0;31mERROR: Ensure DATABASE_URL is set.\033[0m"
13-
fi
14-
15-
# Clear caches
16-
php artisan cache:clear
17-
php artisan config:clear
18-
php artisan route:clear
19-
php artisan view:clear
20-
21-
chown -R www-data:www-data /app/backend
22-
chmod -R 777 /app/backend/storage /app/backend/bootstrap/cache
23-
24-
exec /usr/bin/supervisord -c /etc/supervisord.conf
8+
exec /startup.sh

0 commit comments

Comments
 (0)