如何将Selenium NodeJS Web应用程序部署到Heroku?

问题描述:

我在本地创建了一个Selenium NodeJS网络应用程序。它使用chromedriver,我的驱动程序必须使用一些chrome扩展。在当地一切都很好。 我想在Heroku中使用它,但我做不到。我尝试使用build pack,但是我不能再做。如何将Selenium NodeJS Web应用程序部署到Heroku?

如何将其部署到Heroku?

的package.json(依赖):

.. 
    "dependencies": { 
    "body-parser": "*", 
    "express": "*", 
    "firebase": "^4.1.5", 
    "firebase-admin": "^4.2.1", 
    "selenium-webdriver": "*", 
    "chromedriver":"*", 
    "telebot":"*" 
    }, 
.. 

您可以执行以下步骤来在Heroku

1)作出的git 一个新的存储库中创建GitHub上的帐户,并部署应用程序一个新的存储库 然后在命令行中使用

git status 

如果个检查项目文件的状态EY是红色标记然后添加使用

git add . 

中的所有文件然后提交

git commit -m "first commit" 

2)推动该存储库

git remote add origin https://github.com/git_account/repository_name.git 
    git push -u origin master 

3中的所有数据),然后从GIT中推到的Heroku

git push heroku 
+0

这不是我要找的。我想知道它在Heroku中的ChromeDriver如何工作。抱歉。 – mypolat