Create clean Ubuntu 14.04 image on Digital Ocean or any other VPS.
Login to VPS via ssh:
$ ssh root@server_ip
class GoogleAuthService | |
def initialize(identity) | |
@identity = identity | |
@oauth2_token = @identity.token | |
@oauth2_refresh_token = @identity.refresh_token | |
end | |
def refresh_token! | |
new_token = token.refresh! |
for Manual | |
Manual: | |
ssh root@xxx.xxx.xx.xx | |
1. Fix locale issue | |
$ sudo nano /etc/default/locale | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LANG=en_US.UTF-8 | |
LC_TYPE=en_US.UTF-8 |
class CreateIdentities < ActiveRecord::Migration | |
def change | |
create_table :identities do |t| | |
t.string :provider | |
t.string :uid | |
t.integer :user_id | |
t.timestamps null: false | |
end |