You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: heroku/index.js
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -138,25 +138,40 @@ Generator.prototype.gitForcePush = function gitForcePush() {
138
138
if(err){
139
139
this.log.error(err);
140
140
}else{
141
+
varhasWarning=false;
142
+
141
143
if(this.filters.mongoose){
142
144
this.log(chalk.yellow('\nBecause you\'re using mongoose, you must add mongoDB to your heroku app.\n\t'+'from `/dist`: '+chalk.bold('heroku addons:add mongohq')+'\n'));
145
+
hasWarning=true;
143
146
}
144
147
if(this.filters.socketio){
145
148
this.log(chalk.yellow('Because you\'re using socketIO, you must enable websockets on your heroku app.\n\t'+'from `/dist`: '+chalk.bold('heroku labs:enable websockets')+'\n'));
149
+
hasWarning=true;
146
150
}
147
151
148
152
if(this.filters.facebookAuth){
149
-
this.log(chalk.yellow('Facebook auth requires you to set environment variables for\n\t'+'FACEBOOK-APP-ID\n\t'+'FACEBOOK-SECRET'));
153
+
this.log(chalk.yellow('You will need to set environment variables for facebook auth. From `/dist`:\n\t'+
this.log(chalk.yellow('Openshift websockets use port 8000, you will need to update the client to connect to the correct port for sockets to work.\n\t'+'in `/client/app/components/socket/socket.service`: '+chalk.bold('var ioSocket = io.connect(\''+host_url+':8000'+'\')'+'\n')));
248
+
hasWarning=true;
247
249
}
248
250
249
251
if(this.filters.facebookAuth){
250
-
this.log(chalk.yellow('Facebook auth requires you to set environment variables for\n\t'+'FACEBOOK-APP-ID\n\t'+'FACEBOOK-SECRET'));
252
+
this.log(chalk.yellow('You will need to set environment variables for facebook auth:\n\t'+
253
+
chalk.bold('rhc set-env FACEBOOK_ID=id -a '+this.deployedName+'\n\t')+
254
+
chalk.bold('rhc set-env FACEBOOK_SECRET=secret -a '+this.deployedName+'\n')));
255
+
hasWarning=true;
251
256
}
252
257
if(this.filters.googleAuth){
253
-
this.log(chalk.yellow('Google auth requires you to set environment variables for\n\t'+'GOOGLE-APP-ID\n\t'+'GOOGLE-SECRET'));
254
-
258
+
this.log(chalk.yellow('You will need to set environment variables for google auth:\n\t'+
259
+
chalk.bold('rhc set-env GOOGLE_ID=id -a '+this.deployedName+'\n\t')+
260
+
chalk.bold('rhc set-env GOOGLE_SECRET=secret -a '+this.deployedName+'\n')));
261
+
hasWarning=true;
255
262
}
256
263
if(this.filters.twitterAuth){
257
-
this.log(chalk.yellow('Twitter auth requires you to set environment variables for\n\t'+'TWITTER-APP-ID\n\t'+'TWITTER-SECRET'));
264
+
this.log(chalk.yellow('You will need to set environment variables for twitter auth:\n\t'+
265
+
chalk.bold('rhc set-env TWITTER_ID=id -a '+this.deployedName+'\n\t')+
266
+
chalk.bold('rhc set-env TWITTER_SECRET=secret -a '+this.deployedName+'\n')));
267
+
hasWarning=true;
258
268
}
259
269
260
270
this.log(chalk.green('\nYour app should now be live at \n\t'+chalk.bold(host_url)));
271
+
if(hasWarning){
272
+
this.log(chalk.green('\nYou may need to address the issues mentioned above and restart the server for the app to work correctly \n\t'+
0 commit comments