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
heroku login | |
git init | |
git add . | |
git commit "init" | |
heroku create | |
git push heroku master |
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
module Heaven | |
# Top-level module for providers. | |
module Provider | |
# The capistrano provider. | |
class Capistrano < DefaultProvider | |
..... | |
def execute | |
return execute_and_log(["/usr/bin/true"]) if Rails.env.test? | |
unless File.exist?(checkout_directory) |
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
payload: { | |
"name": "repo_name", | |
"robotName": "yourrobot", | |
"hosts": "", | |
"notify": { | |
"adapter": "slack", | |
"room": "123456789", | |
"user": "123456789", | |
"user_name": "kjj6198" | |
}, |
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
package reports | |
type reporter interface { | |
FetchData() | |
ReportFormat() string | |
} |
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
package reports | |
var DailyReports = []reporter{ | |
&Countdown{}, | |
&Stock{}, | |
&News{}, | |
&Job{}, | |
} |
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
package reports | |
import ( | |
"fmt" | |
"time" | |
) | |
type Countdown struct { | |
Remained float64 | |
} |
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
func main() { | |
configo.Load("env.yml") | |
var reportHTML []string | |
for _, report := range reports.DailyReports { | |
report.FetchData() | |
reportHTML = append(reportHTML, report.ReportFormat()) | |
} |
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
fetch(`${hostname}/cookie`, { | |
method: 'POST', | |
credentials: 'include' | |
}); |
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
Access to fetch at 'http://localhost:3001/cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. |
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
Access to fetch at 'http://localhost:3001/cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. |