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:
- jekyll asset pipeline
- generator_scss.rb (requires compass)
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
Post a Comment