Heroku Fatal при переносе приложения на сервер - PullRequest
0 голосов
/ 27 марта 2020

Попытка пу sh мое приложение к heroku

Я не получаю ошибок при запуске git push heroku master

Я выполнил команду изнутри каталога в узел терминал в VSCode

Я попытался запустить его с bash cml , и я получил Все до дата

Вот обе ссылки на героку, предоставленные мне, когда heroku create
https://weather-app-taylor.herokuapp.com/ и https://git.heroku.com/vast-shelf-27543.git

Ниже указана транзакция после ввода git push heroku master

    Enumerating objects: 70, done.
Counting objects: 100% (70/70), done.
Delta compression using up to 12 threads
Compressing objects: 100% (59/59), done.
Writing objects: 100% (70/70), 991.41 KiB | 1.12 MiB/s, done.
Total 70 (delta 21), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Node.js app detected
remote:        
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified     
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 12.x...
remote:        Downloading and installing node 12.16.1...    
remote:        Using default npm version: 6.13.4
remote:        
remote: -----> Installing dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        added 105 packages from 126 contributors and audited 202 packages in 3.401s
remote:        found 1 low severity vulnerability
remote:          run `npm audit fix` to fix them, or `npm audit` for details
remote:        
remote: -----> Build
remote:
remote: -----> Caching build
remote:        - node_modules
remote:        
remote: -----> Pruning devDependencies
remote:        removed 1 package and audited 201 packages in 
1.095s
remote:        found 1 low severity vulnerability
remote:          run `npm audit fix` to fix them, or `npm audit` for details
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote:        Done: 25.5M
remote: -----> Launching...
remote:        Released v3
remote:        https://vast-shelf-27543.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/vast-shelf-27543.git
 * [new branch]      master -> master

Здесь указан порт
enter image description here
Вот скрипт для Heroku для запуска приложения.
enter image description here

Я также пытался re-pu sh герою с git push heroku master, что дает мне роковой

    PS C:\Users\Samson\Documents\JS\node1\wbs2> git push heroku master
remote: !       No such app as vast-shelf-27543.
fatal: repository 'https://git.heroku.com/vast-shelf-27543.git/' not found

1 Ответ

0 голосов
/ 27 марта 2020

Исправлено. Поскольку приложение уже было загружено в Heroku при первой попытке, я просто добавил

heroku git:remote -a appName

Затем вернулся и git push heroku master

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...