mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-13 20:56:36 +00:00
Fix frontend build process for dev and missing admin/station menus (#5382)
* Fix path for frontend docker-compose.yml in static() command * Set correct HOME env var for node user * Revert removal of isset in AbstractBuildMenu event
This commit is contained in:
parent
2ec0319edd
commit
3d8ada872c
|
@ -763,9 +763,9 @@ restore-legacy() {
|
||||||
# Usage: ./docker.sh static [static_container_command]
|
# Usage: ./docker.sh static [static_container_command]
|
||||||
#
|
#
|
||||||
static() {
|
static() {
|
||||||
docker-compose -f frontend/docker-compose.yml down -v
|
docker-compose -f docker-compose.frontend.yml down -v
|
||||||
docker-compose -f frontend/docker-compose.yml build
|
docker-compose -f docker-compose.frontend.yml build
|
||||||
docker-compose --env-file=.env -f frontend/docker-compose.yml run --rm frontend "$@"
|
docker-compose --env-file=.env -f docker-compose.frontend.yml run --rm frontend "$@"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@ USER node:node
|
||||||
VOLUME /data/frontend/node_modules
|
VOLUME /data/frontend/node_modules
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
ENV HOME=/home/node
|
||||||
|
|
||||||
# Define default command.
|
# Define default command.
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
|
@ -71,7 +71,7 @@ abstract class AbstractBuildMenu extends Event
|
||||||
*/
|
*/
|
||||||
protected function filterMenuItem(array $item): bool
|
protected function filterMenuItem(array $item): bool
|
||||||
{
|
{
|
||||||
if (empty($item['items'])) {
|
if (isset($item['items']) && empty($item['items'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user