Install the Rails gem if you haven't done so before
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
a famous inventor | |
https://docs.google.com/presentation/d/1shAZTmjjrE76OSe8iSyRriGsy5Mfx8eSi2z4BwA9ma0/edit?usp=sharing |
These instructions will help you deploy your Finstagram app to Heroku (a web hosting service), so that the entire internet will be able to see and interact with your application! Before we get to deployment though, we need to make sure a couple of our files are setup properly.
Ensure your Gemfile
file contains the following code (should match exactly).
source "https://rubygems.org"
gem 'rake'
gem 'activesupport'
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
$sqrts = {} | |
def is_perfect_square(s) | |
($sqrts[s] ||= Math.sqrt(s.to_i(16)).denominator) == 1 | |
end | |
def split_str(s) | |
(1...s.length).map do |length| | |
[s[0, length], s[length..-1]] | |
end |
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
on first login: | |
call getJwtToken: | |
if success(when redirected back to the pen request backend) -> call getUserInfo | |
if fail(on first visit) -> don't call getUserInfo | |
on follow up visits or when refreshing page: | |
if token isn't expired: | |
call refreshAuthToken: | |
if success -> call getUserInfo | |
if fail(when backend has restarted) -> logout |
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
Trigger Github Actions from Jenkins Pipeline in Openshift | |
============================================================ | |
### What is Github Actions? | |
### Environment | |
* <b> Openshift</b> : 3.11 |