Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make App compatible to be deployed to Heroku (#350)
* Add Procfile * Update TrustProxies * Update Loggin * Add Sessions Table * Add league/flysystem-aws-s3-v3 as dependency * Add screeenly.filesystem_disk config * Use new config in code * Fix doesScreenshotExist * Declare S3 as public * Handle doesScreenshotExist differently per disk * Update screeenly:cleanup * Create app.json * Add Deploy to Heroku Button * Update app.json * Add heroku-scheduler addon * Use Postgres 13 * Update README
- Loading branch information
1 parent
52da991
commit 04af491
Showing
19 changed files
with
348 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: vendor/bin/heroku-php-apache2 public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "screeenly", | ||
"description": "Create screenshots of websites through a simple API", | ||
"keywords": [ | ||
"screeenly", | ||
"Laravel", | ||
"PHP", | ||
"screenshots", | ||
"puppeteer" | ||
], | ||
"website": "http://screeenly.com/", | ||
"repository": "https://github.com/stefanzweifel/screeenly", | ||
"success_url": "/", | ||
"addons": [ | ||
"scheduler", | ||
{ | ||
"plan": "heroku-postgresql", | ||
"options": { | ||
"version": "13" | ||
} | ||
} | ||
], | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/php" | ||
}, | ||
{ | ||
"url": "heroku/nodejs" | ||
}, | ||
{ | ||
"url": "https://github.com/jontewks/puppeteer-heroku-buildpack" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
database/migrations/2021_01_20_193343_create_sessions_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreateSessionsTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('sessions', function (Blueprint $table) { | ||
$table->string('id')->primary(); | ||
$table->foreignId('user_id')->nullable()->index(); | ||
$table->string('ip_address', 45)->nullable(); | ||
$table->text('user_agent')->nullable(); | ||
$table->text('payload'); | ||
$table->integer('last_activity')->index(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::dropIfExists('sessions'); | ||
} | ||
} |
Oops, something went wrong.