git - Deploy Jingo to Heroku? -


when try deploy jingo repo heroku, app fails launch. investigated logs using heroku logs -a myapp , discovered fatal error occurs during construction of git object in lib/gitmech.js script. fails when constructor tries call fs.statsync(gitdir) with: error enoent, no such file or directory /app/.git.

an issue on github repo jingo mentions problem , issue has been closed comment heroku doesn't support jingo because of ephemeral file system.

i have tried edit gitmech.js escape fs.statsync(gitdir) , set pushinterval 0, thinking flaw avoided not pushing/pulling remote repo. appears git centrally connected how jingo indexes, stores , searches pages. not how manages repository.

any ideas how jingo deploy heroku?

the problem seems arise due method through heroku-cli deploys code heroku. .git sub-folder not added remote file system, fs.statsync(gitdir) fails find .git sub-folder. , jingo fundamentally not work without git.

last night, discovered workaround problem. have not yet tried edit wiki , i'm pretty sure push/pull not function without setting ssh key connect remote origin. but, static site, here's how deploy jingo heroku:

1. modify jingo configuration:

either in config.yaml specify:

application:       repository: '/app' 

or in lib/config.js (for more dynamic solution) specify:

application:       repository: __dirname + '/../' 

2. create procfile app in root:

web: node jingo -c config.yaml 

3. install heroku plugin heroku-builds:

heroku plugins:install heroku-builds 

4. modify heroku-builds code:

remove "--exclude .git" from

~/appdata/local/heroku/plugins/node_modules/heroku-builds/commands/builds/create.js (win 7+)

or

~/heroku/plugins/node_modules/heroku-builds/commands/builds/create.js (linux)

5. deploy code using heroku-builds root:

heroku builds:create -a $heroku_app_name 

Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -