this removes the general `postinstall` call to `bin/heroku` and instead puts it into a heroku-prebuild hook. At the same time, env vars get updated to use the `CMD` prefix. The configured buildpacks were not used. Finally, npm run build is now automatically done by Heroku. Signed-off-by: Claudius <opensource@amenthes.de>
		
			
				
	
	
		
			26 lines
		
	
	
		
			416 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			416 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| cat << EOF > .sequelizerc
 | |
| var path = require('path');
 | |
| 
 | |
| module.exports = {
 | |
|     'config':          path.resolve('config.json'),
 | |
|     'migrations-path': path.resolve('lib', 'migrations'),
 | |
|     'models-path':     path.resolve('lib', 'models'),
 | |
|     'url':             process.env.DATABASE_URL,
 | |
|     'dialect':         process.env.DB_TYPE
 | |
| }
 | |
| 
 | |
| EOF
 | |
| 
 | |
| cat << EOF > config.json
 | |
| 
 | |
| {
 | |
|   "production": {
 | |
|   }
 | |
| }
 | |
| 
 | |
| EOF
 |