How to set environment variables on Heroku for Node app and connect to the PostgreSQL database?

According to documentation you could use heroku CLI heroku config:set DATABASE_URI=database_uri_here –app your-app-name heroku config:set SESSION_SECRET=session_secret –app your-app-name or you could use UI https://dashboard-classic.heroku.com/apps/{your-app-name}/settings and provide the same variables via web interface, as I mentioned in the above comment NODE_ENV=production is not treated specially by heroku, so you do need to provide it as well … Read more

Git includeIf for personal and work profiles doesn’t work

You need to remove one space in: [includeIf “gitdir: F:/Work/CompanyName/”] i.e., make this read: [includeIf “gitdir:F:/Work/CompanyName/”] Note the lack of a blank between the colon after gitdir and the path name to be tested. (Your Git also needs to be at least version 2.13. You might consider using gitdir/i:f:/work/companyname/ so that you are not case-sensitive … Read more

specific config by environment in Scala

Another strategy I’m using consists of using includes. I usually store my DEV settings in the default application.conf file then I create a new conf file for other environments and include the default one. Let’s say my DEV conf application.conf looks like this: myapp { server-address = “localhost” server-port = 9000 some-other-setting = “cool !” … Read more

Configuration.resolve has an unknown property ‘root’

resolve.root is Webpack 1 configuration and doesn’t exist for Webpack 2. For Webpack 2 you can use resolve.modules: https://webpack.js.org/configuration/resolve/#resolve-modules module.exports= { entry:’./public/app.jsx’, output: { path: __dirname, filename:’./public/bundle.js’ }, resolve: { modules: [__dirname, ‘node_modules’], alias:{ Mod1: ‘public/components/mod1.jsx’, Mod2:’public/components/mod2.jsx’, Mod3: ‘public/components/mod3.jsx’ }, extensions: [‘*’,’.js’,’.jsx’] }, module :{ rules:[{ use : ‘babel-loader’, query :{ presets:[‘react’,’es2015′,’es2017′] }, test: /\.jsx?$/, … Read more

tech