Add vines as foreman task
This commit is contained in:
parent
c7d9d8804d
commit
095608827e
3 changed files with 4 additions and 2 deletions
2
.foreman
2
.foreman
|
|
@ -1,2 +1,2 @@
|
||||||
port: 3000
|
port: 3000
|
||||||
formation: web=1,sidekiq=0
|
formation: xmpp=0,web=1,sidekiq=0
|
||||||
|
|
|
||||||
1
Procfile
1
Procfile
|
|
@ -1,2 +1,3 @@
|
||||||
web: bundle exec unicorn_rails -c config/unicorn.rb -p $PORT
|
web: bundle exec unicorn_rails -c config/unicorn.rb -p $PORT
|
||||||
sidekiq: bundle exec sidekiq
|
sidekiq: bundle exec sidekiq
|
||||||
|
xmpp: bundle exec vines start
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ https://github.com/diaspora/diaspora/issues/4202 for details
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
vines=0
|
||||||
# Start Diaspora
|
# Start Diaspora
|
||||||
echo -n "Starting Diaspora in $RAILS_ENV mode on port $port "
|
echo -n "Starting Diaspora in $RAILS_ENV mode on port $port "
|
||||||
if [ "$embed_sidekiq_worker" = "true" ]
|
if [ "$embed_sidekiq_worker" = "true" ]
|
||||||
|
|
@ -152,4 +153,4 @@ else
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
exec bundle exec foreman start -m "web=1,sidekiq=$workers" -p $port
|
exec bundle exec foreman start -m "xmpp=$vines,web=1,sidekiq=$workers" -p $port
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue