-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.js
35 lines (30 loc) · 1.02 KB
/
deploy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var fetch = require('node-fetch');
console.log("Running deploy. Some notes:\n\n")
console.log("This only deploys pushed commits.\n\n")
console.log("Both dev.fofgaming.com and ui.fofgaming.com")
console.log("run in production mode, just off of the dev")
console.log("and master branches respectively. You will")
console.log("almost certainly want to make a build and")
console.log("commit it before deploying.\n\n")
fetch("http://dev.fofgaming.com/deploy.php")
.then(function(response) {
return response.text();
}).then(function(response) {
console.log("--[ Deploy ][ DEV ][ SUCCESS ]--")
console.log(response)
})
.catch(function() {
console.log("--[ Deploy ][ DEV ][ FAILURE ]--")
console.log(response)
})
fetch("http://ui.fofgaming.com/deploy.php")
.then(function(response) {
return response.text();
}).then(function(response) {
console.log("--[ Deploy ][ PRODUCTION ][ SUCCESS ]--")
console.log(response)
})
.catch(function() {
console.log("--[ Deploy ][ PRODUCTION ][ FAILURE ]--")
console.log(response)
})