This repository was archived by the owner on Apr 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,18 @@ COPY deploy/web/site.conf /etc/nginx/sites-available/default
49
49
COPY deploy/web/nginx.conf /etc/nginx/nginx.conf
50
50
COPY deploy/web/mime.types /etc/nginx/mime.types
51
51
COPY deploy/web/php.ini /usr/local/etc/php/php.ini
52
- COPY --from=compiler /var/www /var/www
53
52
54
53
# Force HTTPS
55
54
ARG FORCE_HTTPS=false
56
55
RUN if [ ${FORCE_HTTPS} = true ]; then \
57
56
sed -i 's/# fastcgi_param HTTPS/fastcgi_param HTTPS/' /etc/nginx/sites-available/default \
58
57
;fi
59
58
59
+ COPY --from=compiler /var/www /var/www
60
60
RUN composer dump-autoload --no-dev --optimize
61
- RUN php artisan config:cache \
61
+ RUN grep -q "APP_KEY=" .env || echo "APP_KEY=" >> .env
62
+ RUN php artisan key:generate \
63
+ && php artisan config:cache \
62
64
&& php artisan route:cache \
63
65
&& php artisan view:cache
64
66
RUN chown -R www-data:www-data /var/www
Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ npm run hot
58
58
## Using Docker Compose
59
59
60
60
### For Development
61
-
62
- * Create and run Container
61
+ * Create and start Container
63
62
``` bash
64
63
docker-compose up -d dev
65
64
```
@@ -74,6 +73,7 @@ docker-compose exec dev bash
74
73
composer install
75
74
npm install
76
75
```
76
+
77
77
* Compile Static Asset
78
78
``` bash
79
79
# # Single run compile
@@ -88,11 +88,12 @@ npm run hot
88
88
* Open browser, goto ` http://localhost:8888 `
89
89
90
90
### For Production
91
- * Create and run Container
91
+ * Create and start Container
92
92
```
93
93
docker-compose up -d prod
94
94
```
95
- * Open browser, goto ` http://localhost:88 `
95
+
96
+ * Open browser, goto [ http://localhost:88 ] ( http://localhost:88 )
96
97
97
98
## License
98
99
This project is licensed under the MIT License - see the [ LICENSE] ( LICENSE ) file for details
You can’t perform that action at this time.
0 commit comments