dszabo / jucesparkle

integrate sparkle (on os x), winsparkle (on windows) with a juce applicatio
1 stars 0 forks source link

try out wiki edit #1

Open dszabo opened 9 years ago

dszabo commented 9 years ago

is this code?

$ sudo apt-get install tomcat7-user
$ cd /home/youtrack
$ cd ~ && tomcat7-instance-create yt2slack
dszabo commented 9 years ago

quick & dirty ubuntu linux install instructions

install jdk

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

install tomcat using a private instance for testing

$ sudo apt-get install tomcat7-user
$ cd /home/youtrack
$ cd ~ && tomcat7-instance-create yt2slack

compile the .war using the followin shell script

# install java devenv, you already have jdk
$ sudo apt-get install ant maven

# now get the code, and put this shell script into the root to compile:
#!/bin/bash
mvn -DYOUTRACK_USERNAME=$(youtrack_uid) \ 
    -DYOUTRACK_PASSWORD=$(youtrack_pwd) \
    -DSLACK_AUTH_TOKEN=$(slack_auth_token) \  # get this from api.slack.com
    -DAPP_DATA_DIR=/home/youtrack/yt2slack/data \ # this is the tomcat webapp instance you created earlier
    -DYOUTRACK_HOST=${http://youtrack_hostname} \
    -DYOUTRACK_PORT=${youtrack_port} \
    -DDEFAULT_SLACK_CHANNEL=${general_channel_name} \ # must exist on slack. I guess this is used if project->channel mapping is missing/incomplete 
    -DISSUE_HISTORY_WINDOW=60 \
    -DYOUTRACK_TO_SLACK_CHANNELS="YOUTRACK_PRJ1->slack_channel1;YOUTRACK_PRJ2->slack_channel2;YOUTRACK_PRJ3->slack_channel3" \ #
    -Dmaven.test.skip=true \ # don't run test to have faster build time
    package

deploy war

$ cp target/slack-youtrack-1.0-SNAPSHOT.war /home/youtrack/yt2slack/webapps/slack.war

run tomcat instance

cd /home/youtrack/yt2slack/bin && ./startup.sh

check the logs in tomcat instance* tail the logs to see any initialization errors (in yt2slack/logs)

consult tomcat documentation for a system wide setup and auto starting This is left for you and google.