HosseinKarami / fastshell

Fiercely quick front-end boilerplate and workflows, HTML5, Gulp, Sass
https://hosseinkarami.github.io/fastshell/
559 stars 130 forks source link

PHP? #17

Open jamesburt85 opened 6 years ago

jamesburt85 commented 6 years ago

Hi, I am a relative newbie, so please bear with me.

Can I use PHP on FastShell? Or is it just html in the index.html file?

HosseinKarami commented 6 years ago

Hi, yes you can use PHP in FastShell. Just change the gulpfile.js

gulp.task('browser-sync', ['css', 'js'], function() {
    browserSync.init({
        proxy: "localhost"
    });
});
jamesburt85 commented 6 years ago

Thanks for the quick response.

Do I add that code to the gulpfile.js and then rename the index.html to index.php?

HosseinKarami commented 6 years ago

yes 👍

jamesburt85 commented 6 years ago

Hmm. I did that but in my localhost I get this on the screen 'Cannot GET /'