Did you setup your database before the first deployment? Also make sure your .env is setup correctly, with APP_ENV=production
Dec 21, 2016
17
Level 2
Forge Deployment failing on >php artisan optimize
I am setting up forge for the first time. My initial pull from bitbucket seemed to work. However now when i hit deploy i get the following error
> php artisan optimize
Generating optimized class loader
Compiling common classes
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = energya and table_name = migrations)
[PDOException]
SQLSTATE[HY000] [2002] No such file or directory
When i SSH in and look there are no tables in the database. So I am assuming the migrations have not worked. Have looked online but have not found any solution.
Please or to participate in this conversation.