Last active
August 29, 2015 13:57
-
-
Save fraserxu/9615548 to your computer and use it in GitHub Desktop.
Commands need to run to start develop on Octochat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### Octochat Client | |
$ cd client | |
$ grunt dev && grunt live | |
####### Vagrant box | |
# restart nginx | |
$ sudo service nginx restart | |
# restart redis | |
$ sudo service redis-server restart | |
# restart couchdb | |
$ sudo service couchdb restart | |
# restart couchbase | |
$ sudo service couchbase-server restart | |
# restart rabbitmq | |
$ sudo service rabbitmq-server restart | |
# restart server | |
$ make restartdev | |
# change dns settings | |
$ sudo vim /etc/resolve.conf | |
// add nameserver 8.8.8.8 | |
# restart ejabberd server | |
$ /usr/local/opt/mongooseim/ejabberd/bin/ejabberd ping | |
// if it tells "Node ejabberd@localhost not responding to pings." | |
# restart ejabberd server | |
$ /usr/local/opt/mongooseim/ejabberd/bin/ejabberd restart | |
// if it tells me the 'name ejabberd@localhost seems to be in use by another Erlang node"' | |
# kill mongoose process | |
$ ps aux | grep beam | |
$ kill 2343 | |
# run ejabberd server in live mode | |
$ /usr/local/opt/mongooseim/ejabberd/bin/ejabberd live | |
// if it still not work | |
$ cd infra | |
$ vagrant destroy | |
$ rm -rf .vagrant | |
$ vagrant up | |
// stand by and wait for 10 mins :coffee: | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment