Skip to content

Instantly share code, notes, and snippets.

@cre-o
Created September 6, 2012 21:56
Show Gist options
  • Save cre-o/3660661 to your computer and use it in GitHub Desktop.
Save cre-o/3660661 to your computer and use it in GitHub Desktop.
Отладка api.vk.com на локалке
# Устанавливаем гем, собственно который и делает всю красоту
# https://github.com/progrium/localtunnel
gem "localtunnel", "~> 0.3" # В Gemfile
# Устанавливаем
bundle install # или просто bundle
# Указываем публичный ключ и порт, на котором будем работать
localtunnel -k ~/.ssh/id_rsa.pub 3000
# В ответ получаем что-то вроде этого ==>
This localtunnel service is brought to you by Twilio.
Port 3000 is now publicly accessible from http://446h.localtunnel.com
# Добавляем в настройки приложения на вконтакте
Адрес сайта: http://446h.localtunnel.com
Базовый домен: 446h.localtunnel.com
# Сохраняем
# Запускаем в другой вкладке
rails s
# Заходим по адресу вида http://446h.localtunnel.com
# ==> Радуемся
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment