Using Heroku to deploy my Rails application for some testing. Application deploys fine, however the Bootstrap is not loaded from the Bowerfile. To clarify, I have a Bowerfile in the main directory that contains asset 'bootstrap-sass-official'(when application is running locally, everything works as expected). I also have the 'bower-rails' gem installed, as well as the required line in the application.css file require 'bootstrap-sass-official'. I also have the rake assets:precompile running at the time of deployment with no issues. I have also tried running heroku rake bower:install which tells me to install Bower via npm, which I already have installed.
I have looked for solutions, but no luck. Help?
Related
This is the error I am getting on browser when trying to run my NextJS app which was running fine until I installed sanity.io using npm. There was a new folder created for sanity in my nextjs app which had its own node_modules, I tried going back to when my app was working fine by deleting this sanity folder from my nextjs app. I also tried deleting the node_module folder which originally was present in my next js folder and then ran npm install, however, that does not seem to solve the problem.
Also getting this error in terminal:
I'm deploying my Meteor app with mup from a Windows 10 box to a Digital Ocean VPS. Latest version of mup, latest version of meteor, app runs fine on Windows and the app deployed and ran fine before adding node-uber NPM. I see the following error in the logs when the app tries to start:
npm ERR! enoent ENOENT: no such file or directory, chmod '/bundle/bundle/programs/server/npm/node_modules/node-uber/node_modules/sshpk/bin\sshpk-conv'
Obviously the problem is with the backslash in the filename, but not sure where that is coming from or how to fix it. It isn't referenced in the package.json for node-uber. I've tried editting the package.json for sshpk on the Windows side, but that doesn't make any difference. I can't edit the file in the Docker container because the container keeps restarting and kicking me out.
Anyone have any suggestions on how to fix this, perferably permanently so I don't have to jump through hoops every time I deploy?
Actually manually editting the package.json file does solve the problem. Turns out I have multiple copies of sshpk installed because the parent NPMs are specifying specific versions as being required.
So the "fix" for this problem is the edit the "bin" section of the sshpk package.json file to flip the "\" to "/", save and rerun mup deploy.
Sigh...
I install laravel boilerplate and when start project , he don't load font-awesome, why ?
Run npm install and then npm run dev
And try to clear your laravel cache and/or browser cache.
I'm getting slightly confused with grunt and magento 2. Should I be using Grunt on the server or on my local machine? New to grunt so any pointers would be greatly appreciated.
Local machine. You don't need to run it in production, because you should be running setup:static-content:deploy with the Magento CLI when deploying to production, which will compile all static content for you.
For development, Magento 2 provides a Gruntfile.js.sample and a package.json.sample for local development. You should rename them to Gruntfile.js and package.json, and then install the dependencies with npm install. As long as you have grunt installed, you should be able to then run the grunt commands to compile your code while you are developing. You can see more info and the grunt commands here: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html
You should also make sure that you are running your local development environment in "developer mode": http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-mode.html#change-to-developer-mode
Grunt should be used locally and staging, whenever you have the application in developer mode. In production mode (live site) it shouldn't be used.
I have noticed that some styling is different on heroku and its different on my local environment. Basically on my local env i changed something aligned it properly but on heroku its the old version. I thought it was something that needed assets compilation again and used the below command but nothing.
rake assets:precompile
i have also cleared my cache on heroku
heroku run rake tmp:cache:clear
but it still does not work
any clues?