fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.5k stars 1.08k forks source link

Create a script to deploy on a VPS using Travis #1433

Closed kumuditha-udayanga closed 4 years ago

kumuditha-udayanga commented 4 years ago

Fixes #1404

Changes:

Preview Link: http://88.198.228.198:4000/ (Deployed on Hetzner using Travis).

Environment variables: $IP (IP address of the VPS) $USER (User on VPS)

Currently, this Travis encrypted key is encrypted to my fork. Someone, please provide me with the organizational access to generate a key to upstream or create a key and commit to this PR. These are the steps to config the server.

  1. create an empty git repository on the home directory of the user
  2. add the decrypted key to authorized keys on the server
kumuditha-udayanga commented 4 years ago

@Orbiter @mariobehling It would be nice to have your reviews :)

pranavkarthik10 commented 4 years ago

@kumuditha-udayanga I think the actual gradle build failed, looking through the logs. Looks like that needs to be fixed.

kumuditha-udayanga commented 4 years ago

@kumuditha-udayanga I think the actual gradle build failed, looking through the logs. Looks like that needs to be fixed.

Hey πŸ™‚The Travis build has been passed visit this link below. πŸ˜‡ https://travis-ci.org/fossasia/susi_server/builds/635078448?utm_source=github_status&utm_medium=notification

pranavkarthik10 commented 4 years ago

Oh it looks like you're right! Sorry about that. Great job! πŸ‘

kumuditha-udayanga commented 4 years ago

Oh it looks like you're right! Sorry about that. Great job! πŸ‘

Thank you πŸ™‚πŸ˜‡

norbusan commented 4 years ago

@kumuditha-udayanga I think the actual gradle build failed, looking through the logs. Looks like that needs to be fixed.

@kumuditha-udayanga @pranavkarthik10 the tests fail probably because data/generic_skills/media_discovery is not available. If you run the gradle in a clean checkout with no data directory etc, the tests will fail with

java.lang.AssertionError: does not exist: /mnt/bigdata/Development/SuSI.ai/susi_server.git/data/generic_skills/media_discovery
    at ai.susi.mind.SusiMind$Layer.<init>(SusiMind.java:83)
...
norbusan commented 4 years ago

Merged, thanks!

kumuditha-udayanga commented 4 years ago

You're welcome sir

Merged, thanks!

kumuditha-udayanga commented 4 years ago

@norbusan https://codein.withgoogle.com/dashboard/task-instances/6509450920198144/ task related to this PR :)