Skip to content

Commit 1d70bdc

Browse files
ildyriad7415
andauthored
small fixes for the release of v4 (#479)
* small fixes for the release of v4 * correct urls * Update readme URLs * Add link to changelog for v3 users * improving the install procedure, fixing the removing procedure Co-authored-by: Martin Stone <martin@d7415.co.uk>
1 parent cd43627 commit 1d70bdc

File tree

11 files changed

+38
-28
lines changed

11 files changed

+38
-28
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ DB_PORT=3306
1212
DB_DATABASE=homestead
1313
DB_USERNAME=homestead
1414
DB_PASSWORD=secret
15-
DB_DROP_CLEAR_TABLES_ON_ROLLBACK=true
1615
DB_LOG_SQL=false
1716

1817
# leave empty or delete the line for default (empty string).

.env.mariadb.travis

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ DB_PORT=3306
77
DB_DATABASE=homestead_test
88
DB_USERNAME=root
99
DB_PASSWORD=
10-
DB_DROP_CLEAR_TABLES_ON_ROLLBACK=true
1110

1211
CACHE_DRIVER=array
1312
SESSION_DRIVER=array

.env.postgresql.travis

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ DB_PORT=5432
77
DB_DATABASE=homestead_test
88
DB_USERNAME=postgres
99
DB_PASSWORD=
10-
DB_DROP_CLEAR_TABLES_ON_ROLLBACK=true
1110

1211
CACHE_DRIVER=array
1312
SESSION_DRIVER=array

app/ControllerFunctions/Install/RequirementsChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function check(array $requirements)
6565

6666
// @codeCoverageIgnoreStart
6767
default:
68-
break;
68+
break;
6969
// @codeCoverageIgnoreEnd
7070
}
7171
}

app/Http/Controllers/ImportController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ public function server(Request $request)
194194
$this->memLimit *= 1024 * 1024 * 1024 * 1024;
195195
break;
196196
default:
197-
$this->memLimit *= 1;
198197
break;
199198
// @codeCoverageIgnoreEnd
200199
}

config/urls.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
return [
44
'update' => [
55
// we need this in case the URL of the project changes
6-
'git' => 'http://api.github.com/repos/LycheeOrg/Lychee-Laravel/commits',
6+
'git' => 'http://api.github.com/repos/LycheeOrg/Lychee/commits',
77
'json' => 'https://lycheeorg.github.io/update.json',
88
],
99
'git' => [
10-
'pull' => 'https://github.com/LycheeOrg/Lychee-Laravel.git',
10+
'pull' => 'https://github.com/LycheeOrg/Lychee.git',
1111
],
1212
];

database/migrations/2018_08_15_102039_move_albums.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ public function up()
4848
public function down()
4949
{
5050
if (Schema::hasTable('lychee_albums')) {
51+
Schema::disableForeignKeyConstraints();
5152
Album::truncate();
53+
Schema::enableForeignKeyConstraints();
5254
}
5355
}
5456
}

database/migrations/2018_08_15_103716_move_photos.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use App\Album;
44
use App\Logs;
5+
use App\ModelFunctions\Helpers;
56
use App\Photo;
67
use Illuminate\Database\Migrations\Migration;
78
use Illuminate\Support\Facades\DB;
@@ -33,6 +34,7 @@ public function up()
3334
$album = $album_id;
3435
}
3536
$photo->id = $id;
37+
$photo->album_id = $album;
3638
$photo->title = $result->title;
3739
$photo->description = $result->description;
3840
$photo->url = $result->url;
@@ -63,8 +65,6 @@ public function up()
6365
$photo->thumb2x = 1;
6466
}
6567
}
66-
67-
$photo->album_id = $album;
6868
$photo->checksum = $result->checksum;
6969
if (Storage::exists('medium/' . $photo->url)) {
7070
list($width, $height) = getimagesize(Storage::path('medium/' . $photo->url));

public/installer/assets/css/style.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
<p align="center"><img src="https://raw.githubusercontent.com/LycheeOrg/Lychee-Laravel/master/Banner.png" width="400px" alt="@LycheeOrg"></p>
1+
<p align="center"><img src="https://raw.githubusercontent.com/LycheeOrg/Lychee/master/Banner.png" width="400px" alt="@LycheeOrg"></p>
22

33
<p align="center">
4-
<a href="https://travis-ci.com/LycheeOrg/Lychee-Laravel"><img src="https://travis-ci.com/LycheeOrg/Lychee-Laravel.svg?branch=master" alt="Build Status"></a>
5-
<a href="https://codecov.io/gh/LycheeOrg/Lychee-Laravel"><img src="https://codecov.io/gh/LycheeOrg/Lychee-Laravel/branch/master/graph/badge.svg" alt="Code Coverage"></a>
6-
<a href="https://github.com/LycheeOrg/Lychee-Laravel/releases"><img alt="GitHub release" src="https://img.shields.io/github/release-pre/LycheeOrg/Lychee-Laravel.svg"></a>
7-
<a href="https://github.com/LycheeOrg/Lychee-Laravel/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/LycheeOrg/Lychee-Laravel.svg"></a>
4+
<a href="https://travis-ci.com/LycheeOrg/Lychee"><img src="https://travis-ci.com/LycheeOrg/Lychee.svg?branch=master" alt="Build Status"></a>
5+
<a href="https://codecov.io/gh/LycheeOrg/Lychee"><img src="https://codecov.io/gh/LycheeOrg/Lychee/branch/master/graph/badge.svg" alt="Code Coverage"></a>
6+
<a href="https://github.com/LycheeOrg/Lychee/releases"><img alt="GitHub release" src="https://img.shields.io/github/release-pre/LycheeOrg/Lychee.svg"></a>
7+
<a href="https://github.com/LycheeOrg/Lychee/blob/master/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/LycheeOrg/Lychee.svg"></a>
88
<a href="https://gitter.im/LycheeOrg/Lobby"><img src="https://img.shields.io/gitter/room/LycheeOrg/Lobby.svg?logo=gitter" alt="Gitter"></a>
99
<a href="https://bestpractices.coreinfrastructure.org/projects/2855"><img alt="CII Best Practices Summary" src="https://img.shields.io/cii/summary/2855.svg"></a>
10-
<a href="https://sonarcloud.io/dashboard?id=LycheeOrg_Lychee-Laravel"><img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=LycheeOrg_Lychee-Laravel&metric=alert_status"></a>
10+
<a href="https://sonarcloud.io/dashboard?id=LycheeOrg_Lychee"><img alt="Quality Gate Status" src="https://sonarcloud.io/api/project_badges/measure?project=LycheeOrg_Lychee&metric=alert_status"></a>
1111
</p>
1212

1313

14+
#### Help, I'm lost!
15+
16+
I was using the version 3, how do I upgrade to version 4? See [Upgrade &#187;](https://github.com/LycheeOrg/Lychee/wiki/Upgrade-from-version-3)
17+
18+
To find out what's changed, see the [changelog &#187;](https://github.com/LycheeOrg/Lychee/wiki/Changelog)
19+
1420
#### A great looking and easy-to-use photo-management-system.
1521

1622
*Since the 1st of April 2018 this project has moved to it's own Organisation (https://github.com/LycheeOrg) where people are able to submit their fixes to it. We, the Organisation owners, want to thank electerious (Tobias Reich) for the opportunity to make this project live on.*
@@ -24,50 +30,50 @@ Lychee is a free photo-management tool, which runs on your server or web-space.
2430

2531
To run Lychee, everything you need is a web-server with PHP 7.3 or later and a MySQL-Database. Follow the instructions to install Lychee on your server. This version of Lychee is built on the Laravel framework. To install:
2632

27-
1. Clone this repo to your server and set the web root to `lychee-laravel/public`
33+
1. Clone this repo to your server and set the web root to `lychee/public`
2834
2. Run `composer install --no-dev` to install dependencies
2935
3. Copy `.env.example` as `.env` and edit it to match your parameters
3036
4. Generate your secret key with `php artisan key:generate`
31-
5. Migrate your database with `php artisan migrate` to create a new database or migrate an existing Lychee installation to the new framework.
37+
5. Migrate your database with `php artisan migrate` to create a new database or migrate an existing Lychee installation to the latest framework.
3238

33-
See detailed instructions on the [Installation](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Install) wiki page.
39+
See detailed instructions on the [Installation](https://github.com/LycheeOrg/Lychee/wiki/Install) wiki page.
3440

3541
### Docker
3642

3743
Alternatively, an official Docker image can be found at [LycheeOrg/Lychee-Laravel-Docker](https://github.com/LycheeOrg/Lychee-Laravel-Docker) or on Docker Hub as [lycheeorg/lychee-laravel](https://hub.docker.com/r/lycheeorg/lychee-laravel).
3844

3945
### Update
4046

41-
Updating is as easy as it should be. [Update &#187;](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Update)
47+
Updating is as easy as it should be. [Update &#187;](https://github.com/LycheeOrg/Lychee/wiki/Update)
4248

4349
### Settings
4450

45-
Sign in and click the gear in the top left corner to change your settings. [Settings &#187;](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Settings)
51+
Sign in and click the gear in the top left corner to change your settings. [Settings &#187;](https://github.com/LycheeOrg/Lychee/wiki/Settings)
4652

4753
### Build
4854

49-
Lychee is ready to use, right out of the box. If you want to contribute and edit CSS or JS files, you need to rebuild [Lychee-front](https://github.com/LycheeOrg/Lychee-front). [Build &#187;](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Build)
55+
Lychee is ready to use, right out of the box. If you want to contribute and edit CSS or JS files, you need to rebuild [Lychee-front](https://github.com/LycheeOrg/Lychee-front). [Build &#187;](https://github.com/LycheeOrg/Lychee/wiki/Build)
5056

5157
## Advanced Features
5258

5359
Lychee is ready to use straight after installation, but some features require a little more configuration.
5460

5561
### Keyboard Shortcuts
5662

57-
These shortcuts will help you to use Lychee even faster. [Keyboard Shortcuts &#187;](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Keyboard-Shortcuts)
63+
These shortcuts will help you to use Lychee even faster. [Keyboard Shortcuts &#187;](https://github.com/LycheeOrg/Lychee/wiki/Keyboard-Shortcuts)
5864

5965
### Dropbox import
6066

61-
In order to use the Dropbox import from your server, you need a valid drop-ins app key from [their website](https://www.dropbox.com/developers/apps/create). Lychee will ask you for this key, the first time you try to use the import. Want to change your code? Take a look at [the settings](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Settings) of Lychee.
67+
In order to use the Dropbox import from your server, you need a valid drop-ins app key from [their website](https://www.dropbox.com/developers/apps/create). Lychee will ask you for this key, the first time you try to use the import. Want to change your code? Take a look at [the settings](https://github.com/LycheeOrg/Lychee/wiki/Settings) of Lychee.
6268

6369
### Twitter Cards
6470

6571
Lychee supports [Twitter Cards](https://dev.twitter.com/docs/cards) and [Open Graph](http://opengraphprotocol.org) for shared images (not albums). In order to use Twitter Cards you need to request an approval for your domain. Simply share an image with Lychee, copy its link and paste it in [Twitters Card Validator](https://dev.twitter.com/docs/cards/validation/validator).
6672

6773
### Imagick
6874

69-
Lychee uses [Imagick](https://www.imagemagick.org) when installed on your server. In this case you will benefit from a faster processing of your uploads, better looking thumbnails and intermediate sized images for small screen devices. You can disable the usage of [Imagick](https://www.imagemagick.org) in the [settings](https://github.com/LycheeOrg/Lychee-Laravel/wiki/Settings).
75+
Lychee uses [Imagick](https://www.imagemagick.org) when installed on your server. In this case you will benefit from a faster processing of your uploads, better looking thumbnails and intermediate sized images for small screen devices. You can disable the usage of [Imagick](https://www.imagemagick.org) in the [settings](https://github.com/LycheeOrg/Lychee/wiki/Settings).
7076

7177
## Troubleshooting
7278

73-
Take a look at the [Wiki](https://github.com/LycheeOrg/Lychee-Laravel/wiki/), particularly the [FAQ](https://github.com/LycheeOrg/Lychee-Laravel/wiki/FAQ) if you have problems. Discovered a bug? Please create an issue [here](https://github.com/LycheeOrg/Lychee-Laravel/issues) on GitHub!
79+
Take a look at the [Wiki](https://github.com/LycheeOrg/Lychee/wiki/), particularly the [FAQ](https://github.com/LycheeOrg/Lychee/wiki/FAQ) if you have problems. Discovered a bug? Please create an issue [here](https://github.com/LycheeOrg/Lychee/issues) on GitHub!

0 commit comments

Comments
 (0)