ci(bundle): update bundle-prepare script
This commit is contained in:
parent
71b1b5f775
commit
ac5b2d6e94
|
@ -42,7 +42,7 @@ class EpisodeController extends BaseController
|
|||
|
||||
if (count($params) > 1) {
|
||||
if (
|
||||
! ($this->episode = (new EpisodeModel())
|
||||
! ($episode = (new EpisodeModel())
|
||||
->where([
|
||||
'id' => $params[1],
|
||||
'podcast_id' => $params[0],
|
||||
|
@ -52,6 +52,8 @@ class EpisodeController extends BaseController
|
|||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
$this->episode = $episode;
|
||||
|
||||
unset($params[1]);
|
||||
unset($params[0]);
|
||||
}
|
||||
|
|
|
@ -33,8 +33,9 @@ class PodcastController extends BaseController
|
|||
}
|
||||
|
||||
if (
|
||||
($this->podcast = (new PodcastModel())->getPodcastById((int) $params[0])) !== null
|
||||
($podcast = (new PodcastModel())->getPodcastById((int) $params[0])) !== null
|
||||
) {
|
||||
$this->podcast = $podcast;
|
||||
return $this->{$method}();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# install only production dependencies using the --no-dev option
|
||||
php composer.phar install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
|
||||
composer install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
|
||||
|
||||
# build all production static assets (css, js, images, icons, fonts, etc.)
|
||||
npm run build
|
||||
|
|
Loading…
Reference in New Issue