If you're on macOS and have Homebrew installed, run brew cask install quicklook-json and Quick Look will let you look into JSON files properly. https://twitter.com/peterc/status/1088160191881928704
brew cask install quicklook-json
If you're on macOS and have Homebrew installed, run brew cask install quicklook-json and Quick Look will let you look into JSON files properly. https://twitter.com/peterc/status/1088160191881928704
brew cask install quicklook-json
http://bluebirdjs.com/docs/api/environment-variables.html
(node:48913) Warning: a promise was created in a handler at /Volumes/DATA/dev/supra-api-nodejs/node_modules/express/lib/router/index.js:317:13 but was not returned from it, see http://goo.gl/rRqMUw
at new Promise (/Volumes/DATA/dev/supra-api-nodejs/node_modules/bluebird/js/release/promise.js:79:10)
To disable this warnings add this to .env
Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.
This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger then a landing page.
UPD: This manual now compatible with [email protected]. For older versions deployment, see revision history.
Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:
| # Install Bash 4 using homebrew | |
| brew install bash | |
| # Or build it from source... | |
| curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz | |
| tar xzf bash-4.2.tar.gz | |
| cd bash-4.2 | |
| ./configure --prefix=/usr/local/bin && make && sudo make install | |
| # Add the new shell to the list of legit shells |
| /* | |
| * Taken from http://stackoverflow.com/questions/5867534/how-to-save-canvas-data-to-file/5971674#5971674 | |
| */ | |
| var fs = require('fs'); | |
| // string generated by canvas.toDataURL() | |
| var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0" | |
| + "NAAAAKElEQVQ4jWNgYGD4Twzu6FhFFGYYNXDUwGFpIAk2E4dHDRw1cDgaCAASFOffhEIO" | |
| + "3gAAAABJRU5ErkJggg=="; | |
| // strip off the data: url prefix to get just the base64-encoded bytes |