ruby - Running multiple processes on a single Heroku dyno -


i have heroku app, use jekyll. procfile looks this:

web: jekyll serve --port $port 

i want use sass, if add procfile, i'll need 2 dynos, costly me now:

sass: sass style.scss style.css web: jekyll serve --port $port 

can add second process still stay on 1 dyno? what's easiest way developer minimal ruby experience?

i'm interested in processes, jekyll , sass example.

sass not supposed compiled in production, gigantic performance penalty gives no benefit.

so short answer is: you should not that. instead, precompile sass before or during deployment , serve static css in production.

if there exotic reason justifies compiling sass realtime (you should totally share is!), consider using either of those:

sorry if won't work you, haven't tried myself.

ps consider changing hosting provider. heroku powerful tool, extremely pricey. have example @ digitalocean. pure vps come no ruby/node magic preconfigured, vps you're not limited "one dyno" or anything. , difference in prices huge.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -