dongzizhi9903 2015-12-09 22:14
浏览 81

在Windows上运行Revel软件包失败

When I run my packaged Revel app on Windows I get the following error:

C:\app>go run main.go ERROR 2015/12/09 16:02:21 revel.go:276: Failed to import with error: import "": invalid import path exit status 1

I'm running version: v0.12.0

Is this a known issue?

UPDATE: I revoke this question. Works perfectly well. Packaged artifacts from running (revel package appname) go to current directory. It was creating main.go in my apps's src directory, but this isn't valid.

  • 写回答

1条回答 默认 最新

  • dprnr5559 2015-12-10 19:18
    关注

    i would think you should place your source code under "%GOPATH%\src", but you are running your app under "C:\app". are you sure you are working at the right folder?

    another thing i notice is, you should run your revel app with revel command. I don`t think "go run" will compatible with revel.

    Here is a sample revel app repo that runs on Azure App Service (OS is windows). Please reference RevelDeploy.cmd and CustomRun.bat, should be able to provide you some guidance.

    评论

报告相同问题?

悬赏问题

  • ¥15 为什么eprime输出的数据会有缺失?
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题