A base repository of a Laravel app with mysql using nginx on Dokku

Herton 6b6a930c97 Adding steps to setup %!s(int64=6) %!d(string=hai) anos
app 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
bootstrap 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
config d28807a9bb Adding db creds %!s(int64=6) %!d(string=hai) anos
database 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
public 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
resources d28807a9bb Adding db creds %!s(int64=6) %!d(string=hai) anos
routes 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
storage 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
tests 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
.buildpacks f4915dfa2a Laravel base config %!s(int64=6) %!d(string=hai) anos
.editorconfig 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
.env.example 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
.gitattributes 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
.gitignore 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
Procfile f4915dfa2a Laravel base config %!s(int64=6) %!d(string=hai) anos
README.md 6b6a930c97 Adding steps to setup %!s(int64=6) %!d(string=hai) anos
artisan 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
composer.json 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
composer.lock 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
package.json 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
phpunit.xml 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
server.php 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
webpack.mix.js 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos
yarn.lock 9ee53c6066 init %!s(int64=6) %!d(string=hai) anos

README.md

Dokku Laravel

A base repo for a Laravel app with MySql under Nginx on Dokku server.

Considering you already have Dokku Installed.

From your local environment pull this branch and run:

  1. composer install
  2. artisan serve
  3. Copy your APP_KEY from .env file.

From the dokku server

  1. Create the app: dokku apps:create myapp
  2. Create the env variable you copied from local: dokku config:set detective APP_KEY={you_key}
  3. Create a db : dokku mysql:create myapp_db
  4. Link with the app: dokku mysql:link myapp_db myapp
  5. Get the created db information: dokku mysql:info myapp_db --dsn
  6. Create the env variable expected on config/database: dokku config:set detective DATABASE_URL={the_url_above}