Advertisement
Guest User

Untitled

a guest
Apr 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var gulp = require('gulp'),
  2. nodemon = require('gulp-nodemon');
  3. var Sequelize = require('sequelize');
  4. const mocha = require('gulp-mocha');
  5.  
  6. gulp.task('default', function(){
  7. nodemon({
  8. script: 'server.js',
  9. ext: 'js',
  10. env: {
  11. PORT:8080,
  12. RDS_HOSTNAME: 'eosbachelortest.chgwe7obqwb2.eu-west-3.rds.amazonaws.com',
  13. RDS_USERNAME:'eosbachelortest',
  14. RDS_PASSWORD:'DetteErEnTest',
  15. RDS_PORT:3306,
  16. RDS_DB_NAME: 'eosbachelor'
  17. },
  18. ignore: ['./node_modules/**'],
  19. })
  20. .on('restart', function(){
  21. console.log('Restarting..');
  22. });
  23. });
  24.  
  25. gulp.task('test', () => {
  26. gulp.src(userTest.js)
  27. .pipe(mocha())
  28. .on('error', console.error)
  29.  
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement