Registry / devops / ember-cli-deploy-postgres

ember-cli-deploy-postgres

JSON →
library0.0.4jsnpmunverified

An Ember.js deploy plugin that uploads the built index.html to a PostgreSQL database. Version 0.0.4, last release unknown (likely abandoned). Thin wrapper around ember-cli-deploy-mysql, requires ember-cli-deploy-build and ember-cli-deploy. Limited configuration options vs alternatives like ember-cli-deploy-redis or ember-cli-deploy-s3. Not actively maintained; use with caution.

npm install ember-cli-deploy-postgres
INSTALL
IMPORT
SIG · EMBER-CLI-DEPLOY-P
E
ember-cli-deploy-postgres
devopsjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ENV.postgres
ENV.postgres = { ... }
ENV['ember-cli-deploy-postgres'] = { ... }
Configuration goes under the 'postgres' key in deploy.js, not the package name.
default (Ember Addon)
import postgresPlugin from 'ember-cli-deploy-postgres'
const plugin = require('ember-cli-deploy-postgres')
Even in Node context, Ember addons are typically imported via ES import syntax in the deploy config.
ember deploy
ember deploy <environment>
ember deploy-postgres
Use the standard ember-cli-deploy command; plugin is auto-detected from configuration.

Shows how to configure the plugin with environment variables for PostgreSQL connection.

// config/deploy.js module.exports = function(deployTarget) { return { postgres: { user: process.env.PG_USER || 'postgres', password: process.env.PG_PASSWORD || '', database: process.env.PG_DATABASE || 'myapp', host: process.env.PG_HOST || 'localhost', port: process.env.PG_PORT || 5432 } }; };
Debug
Known issues
deprecatedPackage is a thin wrapper around ember-cli-deploy-mysql but has no updates since 2016.
fix
Consider using ember-cli-deploy-mysql directly or switch to a maintained plugin like ember-cli-deploy-redis.
affects: all
gotchaConfiguration key is 'postgres' not 'ember-cli-deploy-postgres'
fix
Use ENV.postgres = { ... } in deploy.js.
affects: all
gotchaRequires ember-cli-deploy-build to be installed and configured separately.
fix
Run 'ember install ember-cli-deploy-build' and configure build plugin.
affects: all
gotchaThe plugin subverts index.html to the database, but content for other assets must be handled by other plugins.
fix
Use additional deploy plugins for assets (e.g., ember-cli-deploy-s3).
affects: all
Errors
Common errors & fixes
ENV.postgres is not a function
Configuration object passed incorrectly as a function instead of plain object.
fix
Set ENV.postgres = { ... } directly, without wrapping in function.
Cannot find module 'ember-cli-deploy-postgres'
Plugin not installed or not added to package.json.
fix
Run 'ember install ember-cli-deploy-postgres'.
pg default is not a constructor
The underlying pg module may not be compatible with Node version.
fix
Ensure Node >= 4.2.0 and pg is installed.
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies
ember-cli-deployrequiredCore deploy pipeline required
ember-cli-deploy-buildrequiredBuild step needed before deployment
ember-cli-deploy-mysqlrequiredWrapper dependency, replaced with pg internally
Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
ember-cli-deploy-postgres — npm install ember-cli-deploy-postgres · libregistry