Using grunt server, how can I redirect all requests to root url?

First, using your command line, navigate to your directory with your gruntfile. Type this in the CLI: npm install –save-dev connect-modrewrite At the top of your grunt file put this: var modRewrite = require(‘connect-modrewrite’); Now the next part, you only want to add modRewrite into your connect: modRewrite([‘!\\.html|\\.js|\\.svg|\\.css|\\.png$ /index.html [L]’]), Here is a example of … Read more

How do I force a subtree push to overwrite remote changes?

The trick was to chain the subtree split into a forced push: git push origin `git subtree split –prefix dist master`:production –force I got this from the Addendum of http://clontz.org/blog/2014/05/08/git-subtree-push-for-deployment/, who actually references this answer on Stack Overflow. I had skimmed this one earlier but Steve Clontz’s post made it click for me.

Fontawesome is not working when project is built with grunt

I had the same problem. The following code solved my problem. copy: { dist: { files: [{ expand: true, dot: true, cwd: ‘<%= config.app %>’, dest: ‘<%= config.dist %>’, src: [ ‘*.{ico,png,txt}’, ‘.htaccess’, ‘images/{,*/}*.webp’, ‘{,*/}*.html’, ‘styles/fonts/{,*/}*.*’ ] },{ expand: true, dot: true, cwd: ‘bower_components/bootstrap/dist’, // change this for font-awesome src: [‘fonts/*.*’], dest: ‘<%= config.dist %>’ … Read more

How to fix bower ECMDERR

In case you might encounter the same issue…It turns out my machine behind firewall, that won’t able to access git://github.com/jquery/jquery.git Link: Unable to Connect to GitHub.com For Cloning The solution without changing the firewall: git config –global url.”https://”.insteadOf git:// Credit to @bnguyen82 from Unable to Connect to GitHub.com For Cloning and @Sindre Sorhus from Bower … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)