Skip to content

Instantly share code, notes, and snippets.

View OmarGonD's full-sized avatar

omar OmarGonD

View GitHub Profile
@OmarGonD
OmarGonD / heroku-remote.md
Created February 2, 2020 14:08 — forked from randallreedjr/heroku-remote.md
Add a Heroku remote to an existing git repo

Working with git remotes on Heroku

Generally, you will add a git remote for your Heroku app during the Heroku app creation process, i.e. heroku create. However, if you are working on an existing app and want to add git remotes to enable manual deploys, the following commands may be useful.

Adding a new remote

Add a remote for your Staging app and deploy

Note that on Heroku, you must always use master as the destination branch on the remote. If you want to deploy a different branch, you can use the syntax local_branch:destination_branch seen below (in this example, we push the local staging branch to the master branch on heroku.

$ git remote add staging https://git.heroku.com/staging-app.git
@OmarGonD
OmarGonD / gist:b70b712327d7e479f2c7
Created May 2, 2015 22:00
Web Scrapping - Get 2 nodes at the same time
library(RSelenium)
library(rvest)
#start RSelenium
checkForServer()
startServer()
remDr <- remoteDriver()
remDr$open()
#navigate to your page
remDr$navigate("http://www.linio.com.pe/celulares-telefonia-y-gps/")