deploy vuejs heroku
$ heroku create <YOUR-PROJECT-NAME-HERE>
$ heroku config:set NODE_ENV=production --app <YOUR-PROJECT-NAME-HERE>
$ yarn build # or npm run build
$ git status
$ git add && git commit -m 'Deploy to heroku'
$ git push origin master
$ git push heroku master// vue.config.js
const webpack = require('webpack');
module.exports = {
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
'process.env': {
'PORT': JSON.stringify(process.env.PORT)
}
})
]
}
}
// You can now access process.env.PORT anywhere in your vue application
Also in C++:
- export github branch from one repository to another
- reinstall all tables doctrine
- finda java home
- install jdk linux
- ubuntu change directory owner
- Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
- android studio licenses
- install and set up mariadb django
- gh create alias
- git remote add wrong thing how to remove
- list directory xargs linux
- amazon linux wireguard
- leaflet install yarn
- host your pdf resume on github and jekyll
- delete a folder then git push
- terraform state
- install networkx python
- installed delphi package says unit not found
- dig t flag
- how to install wtforms on mac terminal
- install php 7.4 nginx ubuntu
- install angular cli version
- github claims I have a large file that
- how to open .conf ubuntu