Created
September 6, 2012 21:56
-
-
Save cre-o/3660661 to your computer and use it in GitHub Desktop.
Отладка api.vk.com на локалке
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Устанавливаем гем, собственно который и делает всю красоту | |
# 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