Skip to content

Commit 90e426b

Browse files
committed
Merge branch 'master' into release
* master: (60 commits) Updated CHANGELOG Fixes #257 - Touch files when extracting to prevent warnings about timestamps Update README.md Added a note about a common error Updated ioredis Updated google2fa library Fixes #254 Fixes #256 - Git tag names causing a fatal error if they are not valid version string Fixed gulpfile so that assets don't get removed before they are versioned Updated dependencies Updated dependencies Priority WS for optimal transport browser (#250) Ignore suggestions when installing Composer deps (#252) Fix style issue Revert "[Snyk Alert] Fix for 2 vulnerable dependency paths" (#245) fix: package.json & .snyk to reduce vulnerabilities (#244) Handling the timeout checking for an update on github, i.e. when I am at work behind a proxy Added a check to the updatre script to ensure npm install has been run Update dialog.blade.php (#239) Silence PHPMD ...
2 parents 4c78a5f + bfa841a commit 90e426b

File tree

237 files changed

+2523
-1693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+2523
-1693
lines changed

.bowerrc

-3
This file was deleted.

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.vagrant
88
phpunit.xml
99
_ide_helper.php
10-
_ide_helper_models.php
10+
.phpstorm.meta.php
1111

1212
# Composer files
1313
composer.phar
@@ -16,3 +16,4 @@ auth.json
1616
# Dependencies
1717
node_modules
1818
vendor
19+
bower_components

CHANGELOG.md

+32-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
11
# Change Log
22

3-
## [0.0.37](https://github.com/REBELinBLUE/deployer/tree/0.0.37) (2016-05-30)
4-
[Full Changelog](https://github.com/REBELinBLUE/deployer/compare/0.0.35...0.0.37)
3+
## [0.0.37](https://github.com/REBELinBLUE/deployer/tree/0.0.37) (2016-08-06)
4+
[Full Changelog](https://github.com/REBELinBLUE/deployer/compare/0.0.36...0.0.37)
5+
6+
**Implemented enhancements:**
7+
8+
- Update the log when viewing it [\#232](https://github.com/REBELinBLUE/deployer/issues/232)
9+
- \[IMPROVEMENT\] Ignore suggestions when installing Composer deps [\#252](https://github.com/REBELinBLUE/deployer/pull/252) ([jbrooksuk](https://github.com/jbrooksuk))
10+
- \[IMPROVEMENT\] Priority WS for optimal transport browser [\#250](https://github.com/REBELinBLUE/deployer/pull/250) ([denji](https://github.com/denji))
11+
12+
**Fixed bugs:**
13+
14+
- Options don't exist on all versions of tar [\#257](https://github.com/REBELinBLUE/deployer/issues/257)
15+
- Fatal error if git tags contain a string which is not a valid version [\#256](https://github.com/REBELinBLUE/deployer/issues/256)
16+
- Installer should check for node or nodejs [\#230](https://github.com/REBELinBLUE/deployer/issues/230)
17+
- Installer gets into an infinite loop if there are PDO drivers loaded before MySQL [\#254](https://github.com/REBELinBLUE/deployer/pull/254) ([moxx](https://github.com/moxx))
18+
- \*\*\[FIX\]\*\* Incorrect Lang variables [\#239](https://github.com/REBELinBLUE/deployer/pull/239) ([uLow](https://github.com/uLow))
19+
20+
**Closed issues:**
21+
22+
- Acting strange [\#233](https://github.com/REBELinBLUE/deployer/issues/233)
23+
- Custom deployment templates [\#174](https://github.com/REBELinBLUE/deployer/issues/174)
24+
25+
**Merged pull requests:**
26+
27+
- Possible fix for toJS issue in NavButtons [\#249](https://github.com/REBELinBLUE/deployer/pull/249) ([tizz66](https://github.com/tizz66))
28+
- Make spin a boolean prop of Icon instead of passing classname [\#247](https://github.com/REBELinBLUE/deployer/pull/247) ([tizz66](https://github.com/tizz66))
29+
- Fixes an error thrown by timeline component if there's no timeline data [\#246](https://github.com/REBELinBLUE/deployer/pull/246) ([tizz66](https://github.com/tizz66))
30+
- Refactors dashboard timeline and adds associated components [\#243](https://github.com/REBELinBLUE/deployer/pull/243) ([tizz66](https://github.com/tizz66))
31+
- Box component [\#241](https://github.com/REBELinBLUE/deployer/pull/241) ([tizz66](https://github.com/tizz66))
32+
33+
## [0.0.36](https://github.com/REBELinBLUE/deployer/tree/0.0.36) (2016-05-30)
34+
[Full Changelog](https://github.com/REBELinBLUE/deployer/compare/0.0.35...0.0.36)
535

636
**Fixed bugs:**
737

README.md

+31-4
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,46 @@ Check out the [releases](https://github.com/REBELinBLUE/deployer/releases), [lic
4242

4343
The `master` branch of this repository is a development branch and **should not** be used in production. Changes are merged into the `release` branch when they are considered stable and may then be tagged for release at any time. It is recommended that you use the latest tag [release](https://github.com/REBELinBLUE/deployer/releases) for production. For information on contributing see [contribution guidelines](/.github/CONTRIBUTING.md).
4444

45+
### Common Error
46+
47+
If you see an error like the following in the logs
48+
49+
```
50+
'ErrorException' with message 'file_get_contents(/var/www/deployer/public/build/rev-manifest.json): failed to open stream: No such file or directory' in /var/www/deployer/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:343
51+
```
52+
53+
or the following on the page
54+
55+
```
56+
ErrorException (E_ERROR) file_get_contents(/var/www/deployer/public/build/rev-manifest.json): failed to open stream: No such file or directory
57+
```
58+
59+
it means you are not using a production build. You either need to checkout the `release` branch or a specific release, or install the additional development dependencies
60+
61+
```shell
62+
$ composer install
63+
$ npm install
64+
```
65+
66+
and then build the assets
67+
68+
```shell
69+
$ gulp
70+
```
71+
4572
## Requirements
4673

4774
- [PHP](http://www.php.net) 5.5.9+ or newer
4875
- A database, either [MySQL](https://www.mysql.com) or [PostgreSQL](http://www.postgresql.org) are recommended but [SQLite](https://www.sqlite.org) can be used
4976
- [Composer](https://getcomposer.org)
5077
- [Redis](http://redis.io)
5178
- [Node.js](https://nodejs.org/)
52-
- A suitable [queue](http://laravel.com/docs/5.1/queues) for Laravel, [Beanstalkd](http://kr.github.io/beanstalkd/) is recommended but Redis can also be used
79+
- [Beanstalkd](http://kr.github.io/beanstalkd/) for queuing jobs. Although Laravel can use redis there is currently [an issue when using more than 1 queue worker](https://github.com/laravel/framework/issues/8577), the default in Deployer is 3.
5380

5481
### Optional extras
5582

5683
- [Supervisor](http://supervisord.org) to keep the queue listener and Node.js socket server running
57-
- A [caching server](http://laravel.com/docs/5.1/cache), unless you expect a lot of traffic the default `file` cache is probably enough
84+
- A [caching server](http://laravel.com/docs/5.2/cache), unless you expect a lot of traffic the default `file` cache is probably enough
5885

5986
## Installation
6087

@@ -67,7 +94,7 @@ $ git clone https://github.com/REBELinBLUE/deployer.git
6794
2. Checkout the latest release
6895

6996
```shell
70-
$ git checkout 0.0.36
97+
$ git checkout 0.0.37
7198
```
7299

73100
3. Install dependencies
@@ -108,7 +135,7 @@ $ editor .env
108135

109136
```shell
110137
$ git fetch --all
111-
$ git checkout 0.0.36
138+
$ git checkout 0.0.37
112139
```
113140

114141
2. Update the dependencies

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.37
1+
0.0.38-dev

app/Bootstrap/ConfigureLogging.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ class ConfigureLogging extends BaseLoggingConfiguration
1414
/**
1515
* Configure the Monolog handlers for the application.
1616
*
17-
* @param \Illuminate\Contracts\Foundation\Application $app
18-
* @param \Illuminate\Log\Writer $log
19-
* @return void
17+
* @param Application $app
18+
* @param Writer $log
2019
*/
2120
protected function configureSingleHandler(Application $app, Writer $log)
2221
{
@@ -27,9 +26,8 @@ protected function configureSingleHandler(Application $app, Writer $log)
2726
/**
2827
* Configure the Monolog handlers for the application.
2928
*
30-
* @param \Illuminate\Contracts\Foundation\Application $app
31-
* @param \Illuminate\Log\Writer $log
32-
* @return void
29+
* @param Application $app
30+
* @param Writer $log
3331
*/
3432
protected function configureDailyHandler(Application $app, Writer $log)
3533
{

app/CheckUrl.php

+16-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@
1010
use REBELinBLUE\Deployer\Traits\BroadcastChanges;
1111

1212
/**
13-
* The application's url store for health check.
13+
* The application's url store for health check.
14+
*
15+
* @property integer $id
16+
* @property string $title
17+
* @property string $url
18+
* @property integer $project_id
19+
* @property integer $period
20+
* @property boolean $is_report
21+
* @property boolean $last_status
22+
* @property \Carbon\Carbon $created_at
23+
* @property \Carbon\Carbon $updated_at
24+
* @property string $deleted_at
25+
* @property-read Project $project
1426
*/
1527
class CheckUrl extends Model
1628
{
@@ -44,8 +56,7 @@ class CheckUrl extends Model
4456

4557
/**
4658
* Override the boot method to bind model event listeners.
47-
*
48-
* @return void
59+
* @dispatches RequestProjectCheckUrl
4960
*/
5061
public static function boot()
5162
{
@@ -62,8 +73,7 @@ public static function boot()
6273
/**
6374
* Define a mutator to set the status to untested if the URL changes.
6475
*
65-
* @param string $value
66-
* @return void
76+
* @param string $value
6777
*/
6878
public function setUrlAttribute($value)
6979
{
@@ -77,7 +87,7 @@ public function setUrlAttribute($value)
7787
/**
7888
* Belongs to relationship.
7989
*
80-
* @return Project
90+
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
8191
*/
8292
public function project()
8393
{

app/Command.php

+17-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88

99
/**
1010
* The command model.
11+
*
12+
* @property integer $id
13+
* @property string $name
14+
* @property string $user
15+
* @property string $script
16+
* @property integer $project_id
17+
* @property integer $step
18+
* @property integer $order
19+
* @property \Carbon\Carbon $created_at
20+
* @property \Carbon\Carbon $updated_at
21+
* @property string $deleted_at
22+
* @property boolean $optional
23+
* @property boolean $default_on
24+
* @property-read Project $project
25+
* @property-read Server[] $servers
1126
*/
1227
class Command extends Model
1328
{
@@ -57,7 +72,7 @@ class Command extends Model
5772
/**
5873
* Belongs to relationship.
5974
*
60-
* @return Project
75+
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
6176
*/
6277
public function project()
6378
{
@@ -67,7 +82,7 @@ public function project()
6782
/**
6883
* Belongs to many relationship.
6984
*
70-
* @return Server
85+
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
7186
*/
7287
public function servers()
7388
{

app/Composers/ActiveUserComposer.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class ActiveUserComposer
1313
/**
1414
* Sets the logged in user into a view variable.
1515
*
16-
* @param \Illuminate\Contracts\View\View $view
17-
* @return void
16+
* @param View $view
1817
*/
1918
public function compose(View $view)
2019
{

app/Composers/HeaderComposer.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
*/
1111
class HeaderComposer
1212
{
13+
/**
14+
* @var DeploymentRepositoryInterface
15+
*/
1316
private $deploymentRepository;
1417

1518
/**
16-
* Class constructor.
19+
* HeaderComposer constructor.
1720
*
18-
* @param DeploymentRepositoryInterface $user
21+
* @param DeploymentRepositoryInterface $deploymentRepository
1922
*/
2023
public function __construct(DeploymentRepositoryInterface $deploymentRepository)
2124
{
@@ -25,8 +28,7 @@ public function __construct(DeploymentRepositoryInterface $deploymentRepository)
2528
/**
2629
* Generates the pending and deploying projects for the view.
2730
*
28-
* @param \Illuminate\Contracts\View\View $view
29-
* @return void
31+
* @param View $view
3032
*/
3133
public function compose(View $view)
3234
{

app/Composers/NavigationComposer.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
*/
1111
class NavigationComposer
1212
{
13+
/**
14+
* @var GroupRepositoryInterface
15+
*/
1316
private $groupRepository;
1417

1518
/**
16-
* Class constructor.
19+
* NavigationComposer constructor.
1720
*
18-
* @param DeploymentRepositoryInterface $user
21+
* @param GroupRepositoryInterface $groupRepository
1922
*/
2023
public function __construct(GroupRepositoryInterface $groupRepository)
2124
{
@@ -25,8 +28,7 @@ public function __construct(GroupRepositoryInterface $groupRepository)
2528
/**
2629
* Generates the group listing for the view.
2730
*
28-
* @param \Illuminate\Contracts\View\View $view
29-
* @return void
31+
* @param View $view
3032
*/
3133
public function compose(View $view)
3234
{

app/Composers/ThemeComposer.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class ThemeComposer
1313
/**
1414
* Generates the pending and deploying projects for the view.
1515
*
16-
* @param \Illuminate\Contracts\View\View $view
17-
* @return void
16+
* @param View $view
1817
*/
1918
public function compose(View $view)
2019
{

app/Composers/VersionComposer.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@
1111
*/
1212
class VersionComposer
1313
{
14+
/**
15+
* @var LatestReleaseInterface
16+
*/
1417
private $release;
1518

1619
/**
17-
* Class constructor.
20+
* VersionComposer constructor.
1821
*
1922
* @param LatestReleaseInterface $release
2023
*/
@@ -26,8 +29,7 @@ public function __construct(LatestReleaseInterface $release)
2629
/**
2730
* Determines if the update prompt should show.
2831
*
29-
* @param \Illuminate\Contracts\View\View $view
30-
* @return void
32+
* @param View $view
3133
*/
3234
public function compose(View $view)
3335
{

app/Console/Commands/CheckHeartbeats.php

+2-12
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,11 @@ class CheckHeartbeats extends Command
2525
* @var string
2626
*/
2727
protected $description = 'Checks that any expected heartbeats have checked-in';
28-
29-
/**
30-
* Create a new command instance.
31-
*
32-
* @return void
33-
*/
34-
public function __construct()
35-
{
36-
parent::__construct();
37-
}
38-
28+
3929
/**
4030
* Execute the console command.
4131
*
42-
* @return mixed
32+
* @fires HeartbeatMissed
4333
*/
4434
public function handle()
4535
{

0 commit comments

Comments
 (0)