How to setup Abot on C9

go
postgresql

#1

#how-to setup Abot on C9

Simply clone this repo:

  1. Go to my Abot Trial workspacepage and click the Clone button:
    https://c9.io/mikeumus/abot-trial

  2. Make sure posgresql server is running with:
    sudo service postgresql restart

  3. Run: abot server

  • If this doesn’t work try the setup script again and see what fails:
    1. cd $GOPATH/src/github.com/itsabot/abot
    2. cmd/setup.sh postgres:newPSQLpass@0.0.0.0

###or Setup Abot on a blank C9 Workspace:

  1. Create a new C9 Workspace and just choose the “Blank” ubuntu template.

  2. Follow setup on itsabot/abot. See the robfig/Glock ReadMe.

  3. go get github.com/itsabot/abot

  4. cd $GOPATH/src/github.com/itsabot/abot

  5. go get github.com/robfig/glock <-- this may be extra

  6. Set $GOROOT for non standard Go install paths. See Go-lang docs: https://golang.org/doc/install

  7. Use which go to see where go is installed on your workspace.

  8. export GOROOT=/opt/go

  9. export PATH=$PATH:$GOROOT/bin

  10. Need to set Glock binary path with export PATH=$PATH:/home/ubuntu/workspace/bin/ or better yet append this to the end of your ~/.bashrc

  11. Upgrade posgresql to version 9.5:

  12. Download this postgres upgrade script:
    wget https://git.io/vV0bp

  13. Run the upgrade script:
    sudo bash upgrade_postgres-9-3_9-5.sh

  14. Change the pg_hba.conf postgres user settings to md5 and restart the server.

  15. Alter the postgres user password to a custom password:

  16. sudo su - postgres

  17. psql

  18. ALTER USER "postgres" WITH PASSWORD "new_password";

  19. \q

  20. exit

  21. Run the abot cmd/setup.sh script:

  22. cd $GOPATH/src/github.com/itsabot/abot

  23. cmd/setup.sh postgres:newPSQLpass@0.0.0.0
    “newPSQLpass” is the new password you set for the postgres database user in that step above ^.

That should do it. More verbose guide to come! :smile: :cloud: : :robot:


Tutorials - Table of Contents