Closed xyh2132 closed 1 year ago
I have already cloned the git, but I don't know how to open it next. Please help.
@xyh2132 @laowantong077 Guys you must clone this repository git clone https://github.com/beyondcode/writeout.ai
After that go to new directory cd writeout.ai
Run few command
1.Run composer install
2.Run cp .env.example .env
3.Run php artisan key:generate
4.Run php artisan migrate
5.Run php artisan serve
After that added key to env file(read readme file)
I got the following errors when I run "php artisan migrate"
root@ecc01:/usr/local/nginx/html/# php artisan migrate
Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = transcribe_ai and table_name = migrations and table_type = 'BASE TABLE')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:760 756▕ // If an exception occurs when attempting to run a query, we'll format the error 757▕ // message to include the bindings with SQL, which will make this exception a 758▕ // lot more helpful to the developer instead of just the database's errors. 759▕ catch (Exception $e) { ➜ 760▕ throw new QueryException( 761▕ $query, $this->prepareBindings($bindings), $e 762▕ ); 763▕ } 764▕ }
+39 vendor frames
40 artisan:35 Illuminate\Foundation\Console\Kernel::handle()
@nxtreaming in your .env file you have a 3 line
DB_DATABASE=transcribe_ai
DB_USERNAME=
DB_PASSWORD=
You must create a new database and set your database user and password on your local env
Thanks I created the DB according to your instructions, Now, 'php artisan migrate' is OK
But I faced a new error (miss region) when I run "curl http://127.0.0.1:8000"
root@ecc01:~# curl http://127.0.0.1:8000 <!DOCTYPE html>
How to install this? Can you provide a tutorial?