Coder Social home page Coder Social logo

Comments (8)

hwbrzzl avatar hwbrzzl commented on July 18, 2024

Hi, 感谢反馈。请问 goravel 拉下来后有新增什么逻辑么?.env 文件内容方便发出来看下么?

from goravel.

wingofsky avatar wingofsky commented on July 18, 2024

Hi, 感谢反馈。请问 goravel 拉下来后有新增什么逻辑么?.env 文件内容方便发出来看下么?

全新的项目

按照:https://www.goravel.dev/zh/getting-started/installation.html

这个在跑,跑到go run . artisan key:generate报错

变动只把mod里 go 1.18 改成了 go 1.19,没动过其他的

env是直接:

// 创建 .env 环境配置文件
cp .env.example .env

from goravel.

hwbrzzl avatar hwbrzzl commented on July 18, 2024

收到,thanks,我这里试一下

from goravel.

hwbrzzl avatar hwbrzzl commented on July 18, 2024

Hi @wingofsky , 我用以下步骤未能复现你的问题:

  1. 使用 docker 搭建 go 1.19 环境;
  2. git pull [email protected]:goravel/goravel.git goravel
  3. 修改 go.mod 中 go 1.18 -> go 1.19
  4. cp .env.example .env;
  5. go mod tidy;
  6. go run . artisan key:generate;

image

还请回复更多信息来帮助排查问题:

  1. 你的运行环境时 windows 还是 MacOS?
  2. go version 输出的具体信息是什么?
  3. 你的操作步骤与我上述步骤是否有差异?差异是什么?

from goravel.

wingofsky avatar wingofsky commented on July 18, 2024

Hi @wingofsky , 我用以下步骤未能复现你的问题:

  1. 使用 docker 搭建 go 1.19 环境;
  2. git pull [email protected]:goravel/goravel.git goravel
  3. 修改 go.mod 中 go 1.18 -> go 1.19
  4. cp .env.example .env;
  5. go mod tidy;
  6. go run . artisan key:generate;
image

还请回复更多信息来帮助排查问题:

  1. 你的运行环境时 windows 还是 MacOS?
  2. go version 输出的具体信息是什么?
  3. 你的操作步骤与我上述步骤是否有差异?差异是什么?

MACOS
步骤如图
image

其中有两次错误是我忘记把目录放到go.work里了(且第二次写错路径了)

from goravel.

hwbrzzl avatar hwbrzzl commented on July 18, 2024

Hi, 你是将 Goravel 同其他目录一起放到 go.work 了么?如果不使用 go.work 根据你现在的步骤运行是否正常呢?另外我看你的截图中显示你是运行在「(base)」下,请问这是一个容器环境吗?

from goravel.

wingofsky avatar wingofsky commented on July 18, 2024

不是容器
我放到go.work外,就可以了,谢谢!

image

from goravel.

hwbrzzl avatar hwbrzzl commented on July 18, 2024

Great, 碰到任何问题欢迎 Issues, PR

from goravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.