Scala compilation

ls
cd /usr/local/Cellar/jetty/9.3.5.v20151012/libexec
java -jar start.jar
cd ~/src/notey-web/main/bash setup_local_webapp.sh
 ./ngulp deploy-local or
./ngulp dev --server=YES

jetty start

AWS signin
https://notey-hk.signin.aws.amazon.com/console
rosanna
Siubear

scalalift version


Database backup
/backup/mariadb_backup.ssh

Make changes to topic_comments_content
percona pt-online-schema-change

Connect to test server
cd source/build/
./deployweb.sh --help

Find the solr aws machine by running
/Users/noteyltd/src/notey-solr/cloud-scripts/list_clusters.sh

You can describe cluster by running
  describe_cluster.sh k7Z5AmmO
-------

pocadesign.Action provides functions for scala code
Within spring, getBean

To compile notey-java, go to
Use java -version 1.7.9
setjdk 1.7

mvn install
1. Put the jar file inside Jetty
cp thelistweb-0.0.1-SNAPSHOT.jar /usr/local/Cellar/jetty/9.3.5.v20151012/libexec/webapps/ROOT/WEB-INF/lib/theWeb

2. If run by eclipse:
cp target/thelistweb-0.0.1-SNAPSHOT.jar ~/src/notey-web/main/webapp/WEB-INF/lib/thelistweb.jar

3. SCP to test server
scp thelistweb-0.0.1-SNAPSHOT.jar ec2-user@52.1.219.124:/home/ec2-user/source/build/lib/thelistweb.jar

Update the solr and mysql database path in
/usr/local/Cellar/jetty/9.3.5.v20151012/libexec/webapps/ROOT/WEB-INF/classes/config/fw_prop.properties

Annotation
@Column column in db
@Field column in solr
javacamelcase


code under controller will be invoked by Spring when we go to an endpoint
Controller will call service layers, and service will access DAO and eventually go to vo
Controller will return a json2 object to the web app for display

2 flows:
Scala calls thelist actions
Scala will send html and a list of javascript files and the client will run javascript application and make API request to spring.

Spring calls the service directly.

AccountController

Autowire = singleton bean instance


Configuration file for spring and jetty
webapp/WEB-INF/classes/config/frm_dao.xml

Remember to add a permission in the config file when we add a new API
WEB-INF/classes/config/auth_level_prop.properties



Test server
ssh -A ec2-user@testserver.notey.com

runs web, backend, mobile and starts deployment from ~/source

Health check
api2/ping

Check google analytics and cloudwatch dashboard

Remember to run ocasionally batch server cron job to clear temp diskspace

vi /usr/local/Cellar/jetty/9.3.5.v20151012/libexec/webapps/ROOT/WEB-INF/classes/config/fw_prop.properties.bak

Comments