heroku buildpack init
This commit is contained in:
parent
7dd19c322d
commit
45be1cb49a
15
apps/api/src/lib/buildPacks/heroku.ts
Normal file
15
apps/api/src/lib/buildPacks/heroku.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { executeDockerCmd, prisma } from "../common"
|
||||
|
||||
export default async function (data: any): Promise<void> {
|
||||
// console.log(data)
|
||||
const {applicationId, tag, dockerId} = data
|
||||
// try {
|
||||
await executeDockerCmd({
|
||||
dockerId,
|
||||
command: `pack build ${applicationId}:${tag} --builder heroku/buildpacks:20`
|
||||
})
|
||||
|
||||
// } catch (error) {
|
||||
// throw error;
|
||||
// }
|
||||
}
|
@ -15,6 +15,7 @@ import eleventy from './static';
|
||||
import python from './python';
|
||||
import deno from './deno';
|
||||
import laravel from './laravel';
|
||||
import heroku from './heroku';
|
||||
|
||||
export {
|
||||
node,
|
||||
@ -33,5 +34,6 @@ export {
|
||||
eleventy,
|
||||
python,
|
||||
deno,
|
||||
laravel
|
||||
laravel,
|
||||
heroku
|
||||
};
|
||||
|
@ -292,7 +292,13 @@ export const buildPacks = [
|
||||
fancyName: 'Deno',
|
||||
hoverColor: 'hover:bg-green-700',
|
||||
color: 'bg-green-700'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'heroku',
|
||||
fancyName: 'Heroku Buildpack',
|
||||
hoverColor: 'hover:bg-indigo-700',
|
||||
color: 'bg-indigo-700'
|
||||
}
|
||||
];
|
||||
export const scanningTemplates = {
|
||||
'@sveltejs/kit': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user