Skip to content

Instantly share code, notes, and snippets.

@pteacher
Last active July 22, 2017 07:51
Show Gist options
  • Save pteacher/2e01f797e6a313a0b299c5fe0b9ecb58 to your computer and use it in GitHub Desktop.
Save pteacher/2e01f797e6a313a0b299c5fe0b9ecb58 to your computer and use it in GitHub Desktop.
Запуск сервера на heroku через c9
  • git init

  • git add .

  • git commit -m "initial commit"

  • heroku create fooName

  • git remote -v

  • heroku git:remote -a fooName

  • git push heroku master

  • открываем fooname.herokuapp.com


#после изменений

  • git add .
  • git commit -m "comment"
  • git push heroku master

#если вошли с другого компа

  • git clone git://fooName
  • cd fooName
  • git add .
  • git commit -m ""
  • heroku git:remote -a fooName
  • git push heroku master

#обновить измененный репозиторий

  • git pull heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment