An Apache Shindig extended with Spaces and other adaptations for Graasp (based on apache shindig 2.5.0)
$ make info # shows useful info and all the commands
Get the shindig source code
$ git clone [email protected]:react-epfl/shindig.git
The Graasp-specific configuration files are extracted from the public repo for security reasons. They are hosted on the internal React server as a git repo: ssh://[email protected]/opt/git/config.git. The following command gets all config files and put the into correct places in the code.
$ make prepare
/Graaasp/current/lib/java_shindig
ssl_keys
If you have your ssl_keys in another location, specify this location in the following line (shindig.properties file)
shindig.signing.key-file=/Graaasp/current/lib/java_shindig/ssl_keys/oauthkey.pem
$ make
$ make start
Shindig should be accessible at localhost:8080
$ make clean
make react -> build reacttest.war in the current directory
make prod -> build production.war in the current directory
make all -> build both reacttest.war and production
!!! Compiled .war file should be renamed into ROOT.war on the Tomcat server.
The master branch is automatically deployed to REACT test server when new changes are pushed. To delploy reacttest.war to REACT test server manually, use:
$ make deploy_react
$ make deploy_prod
from local machine
$ make restart_react
$ make restart_prod
from production machine
$ ssh [email protected]
$ /Library/Tomcat/bin/shutdown.sh
# check if the service is killed:
$ ps aux | grep catalina
# if not - kill it manually
$ kill -9 catalina_process_id
$ /Library/Tomcat/bin/startup.sh
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/