File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ def after_sign_in_path_for(resource)
37
37
38
38
private
39
39
40
+ def append_info_to_payload ( payload )
41
+ super
42
+ payload [ :user_id ] = signed_in? ? current_user . id : "guest"
43
+ end
44
+
40
45
def user_not_authorized
41
46
flash [ :alert ] = t ( "security.access_denied" )
42
47
redirect_to root_path
Original file line number Diff line number Diff line change 91
91
92
92
run_locally do
93
93
## Set your env accordingly.
94
+ execute "RAILS_ENV=#{ fetch ( :stage ) } bundle exec rails assets:precompile"
94
95
execute "RAILS_ENV=#{ fetch ( :stage ) } bundle exec rails webpacker:clobber"
95
96
execute "RAILS_ENV=#{ fetch ( :stage ) } bundle exec rails webpacker:compile"
96
97
execute "rsync -av --delete ./public/assets/ #{ fetch ( :deploy_user ) } @#{ rsync_host } :#{ shared_path } /public/assets/"
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ def after_sign_in_path_for(resource)
37
37
38
38
private
39
39
40
+ def append_info_to_payload ( payload )
41
+ super
42
+ payload [ :user_id ] = signed_in? ? current_user . id : "guest"
43
+ end
44
+
40
45
def user_not_authorized
41
46
flash [ :alert ] = t ( "security.access_denied" )
42
47
redirect_to root_path
Original file line number Diff line number Diff line change 91
91
92
92
run_locally do
93
93
## Set your env accordingly.
94
+ execute "RAILS_ENV=#{ fetch ( :stage ) } bundle exec rails assets:precompile"
94
95
execute "RAILS_ENV=#{ fetch ( :stage ) } bundle exec rails webpacker:clobber"
95
96
execute "RAILS_ENV=#{ fetch ( :stage ) } bundle exec rails webpacker:compile"
96
97
execute "rsync -av --delete ./public/assets/ #{ fetch ( :deploy_user ) } @#{ rsync_host } :#{ shared_path } /public/assets/"
You can’t perform that action at this time.
0 commit comments