首次尝试在Heroku上使用graphql / apollo部署MERN堆栈应用程序

时间:2018-11-23 18:15:08

标签: heroku deployment mern

我正在尝试部署我根据youtube系列制作的练习应用,并且想知道如何将其放置在heroku上。我只在客户端文件夹中运行了构建脚本,现在下一步应该做什么? app link on github 我有2个称为“客户端和服务器”的基本文件夹,它们分别在2个不同的端口上运行,那么如何在单个端口上为其提供服务? 因为当我尝试运行git push hero时,我得到了:

E:\Akii\Projects\fullstack-mern-apollo-gql-practice>git push heroku master
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 453 bytes | 226.00 KiB/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote:  !     No default language could be detected for this app.
remote:                         HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote:                         See https://devcenter.heroku.com/articles/buildpacks
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to fullstack-mern-apollo-gql.
remote:
To https://git.heroku.com/fullstack-mern-apollo-gql.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fullstack-mern-apollo-gql.git'

E:\Akii\Projects\fullstack-mern-apollo-gql-practice>git show master:package:json
fatal: Path 'package:json' does not exist in 'master'

0 个答案:

没有答案