Skip to content

How to install this? Can you provide a tutorial? #3

Closed

Description

@xyh2132

How to install this? Can you provide a tutorial?

Activity

  1. laowantong077 commented on Mar 9, 2023

    @laowantong077

    I have already cloned the git, but I don't know how to open it next. Please help.

  2. vmartuniyk commented on Mar 9, 2023

    @vmartuniyk

    @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)

  3. nxtreaming commented on Mar 9, 2023

    @nxtreaming

    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()

  4. vmartuniyk commented on Mar 9, 2023

    @vmartuniyk

    @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

  5. nxtreaming commented on Mar 9, 2023

    @nxtreaming

    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

  6. nxtreaming commented on Mar 9, 2023

    @nxtreaming

    image

  7. nxtreaming commented on Mar 9, 2023

    @nxtreaming

    I got the same error if I deployed the project to a public domain

    image

  8. nxtreaming commented on Mar 9, 2023

    @nxtreaming

    You can verify the error from: https://zhuan.lu/huiwen/public/

  9. vmartuniyk commented on Mar 9, 2023

    @vmartuniyk

    @nxtreaming I think problem in you need feel variables on .env file

    AWS_ACCESS_KEY_ID=
    AWS_SECRET_ACCESS_KEY=
    AWS_DEFAULT_REGION=
    AWS_BUCKET=
    AWS_USE_PATH_STYLE_ENDPOINT=
    
  10. nxtreaming commented on Mar 10, 2023

    @nxtreaming

    @vmartuniyk it should be another issue , I have configured AWS in .env file
    such as:

    image

  11. jocahdj commented on Mar 10, 2023

    @jocahdj

    He uses a 'do' disk, check config/filesystems.php. Adjust your .env variables to these and see if it works then.

    image

  12. nxtreaming commented on Mar 10, 2023

    @nxtreaming

    @jocahdj Yes, it is caused by 'do' storage, I disable it

    I finally made the project working ( https://zhuan.lu/ ). (It does not support aws S3 currently).

  13. crystoneme commented on Mar 10, 2023

    @crystoneme

    @jocahdj Yes, it is caused by 'do' storage, I disable it

    I finally made the project working ( https://zhuan.lu/ ). (It does not support aws S3 currently).

    How to disable the "do" storage? I have the same problem

    btw, I want to run locally

  14. nxtreaming commented on Mar 10, 2023

    @nxtreaming

    @crystoneme I just removed them, and made a small hack. (it is not recommended), I will fix this issue in a week

    Please check the following diff:
    https://www.dropbox.com/s/rnxndfjxwjgso6b/zhuanlu_2023-03-10.diff

  15. xyh2132 commented on Mar 13, 2023

    @xyh2132
    Author

    I got the same error if I deployed the project to a public domain如果我将项目部署到公共域中,我会得到相同的错误

    image

    I encountered the same problem, how did you solve it?

  16. xyh2132 commented on Mar 13, 2023

    @xyh2132
    Author

    @jocahdj Yes, it is caused by 'do' storage, I disable it @jocahdj 是的,这是由“do”存储引起的,我将其禁用
    I finally made the project working ( https://zhuan.lu/ ). (It does not support aws S3 currently).我最终使项目工作了( https://zhuan.lu/ )。 (它目前不支持aws S3)。

    How to disable the "do" storage? I have the same problem如何禁用“do”存储?我有同样的问题

    btw, I want to run locally顺便说一下,我想在本地运行

    Can you tell me how you solved it, please? It's the same problem.

  17. nxtreaming commented on Mar 13, 2023

    @nxtreaming

    Just remove the codes which report errors

  18. locked and limited conversation to collaborators on Mar 14, 2023
  19. converted this issue into a discussion #8 on Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions