danidemi / europrices Goto Github PK
View Code? Open in Web Editor NEWEuroprices
Europrices
App * Developing ** GIT Just to avoid put the password every time $ git config --global credential.helper cache $ git remote -v openshift ssh://[email protected]/~/git/europrices.git/ origin https://github.com/danidemi/europrices.git remove a local branch $ git branch -D openshift-master remove a remote branch $ git push origin --delete serverfix remove a local branch $ git branch -D openshift-master remove a remote branch $ git push origin --delete serverfix or in general... $ git push <remote> --delete <remote_branch> To push a local branch to a remote that is not the local's origin... $ git push openshift master Or more in general $ git push <remote> <local-branch> * Deploy Through OpenShift Git $ git push master openshift/master * Build In base dir mvn clean install cd europrices-webapp mvn clean install assembly:single * Deploy $OPENSHIFT_DATA_DIR - Where things can be placed $OPENSHIFT_DEPLOYMENTS_DIR/current/repo/ - Where the current deployed version is cd $OPENSHIFT_DEPLOYMENTS_DIR/app-deployments/current/repo/europrices-webapp/src/main/scripts/ from local... $ mvn clean install assembly:single -Popenshift -Dspecific (specific is to remove the default 'development' project used by default in Eclipse) $ rhc app stop europrices $ rhc scp europrices upload target/europrice-webapp-1.0-SNAPSHOT-openshift.tar.gz app-root/data $ scp target/europrice-webapp-1.0-SNAPSHOT-openshift.tar.gz [email protected]:app-root/data $ rhc app start europrices $ ssh [email protected] $ ~/app-deployments/current/repo/.openshift/action_hooks/start $ cd $OPENSHIFT_DEPLOYMENTS_DIR/current/repo/ Or you could run this ============================== cd $OPENSHIFT_DEPLOYMENTS_DIR/current/repo/ mvn --global-settings $OPENSHIFT_DATA_DIR/mysettings.xml clean install -DskipTests=true cd $(ls -a | grep webapp) mvn --global-settings $OPENSHIFT_DATA_DIR/mysettings.xml assembly:single ARCHIVE=$(ls target | grep .tar.gz) mv target/$ARCHIVE $OPENSHIFT_DATA_DIR cd $OPENSHIFT_DATA_DIR rm -rf $OPENSHIFT_DATA_DIR/europrices tar -xvf $ARCHIVE rm $ARCHIVE cd $OPENSHIFT_DEPLOYMENTS_DIR/current/repo/ ============================== * Run ** WebApp start nohup java -cp "lib/*:conf" com.danidemi.europrice.EuroPricesWebApp prod &> /dev/null & end kill $(jps | grep EuroPricesWebApp | awk '{print $1}') * URLs http://europrices.danidemi.com/ OpenShift * Web Console https://openshift.redhat.com/app/login?then=%2Fapp%2Fconsole * Action Hooks The script needs to be executable; run the chmod x <scriptname> command to ensure this. * RedHat Console (rhc) rhc setup First setup. rhc apps List available apps. rhc ssh <app_name> Access the "app" through ssh. rhc authorization You can check authorization tokens created under your account by running. rhc account logout Tokens can be deleted by running * Software $ java -version java version "1.7.0_71" OpenJDK Runtime Environment (rhel-2.5.3.1.el6-i386 u71-b14) OpenJDK Server VM (build 24.65-b04, mixed mode) $ mvn -version Apache Maven 3.0.4 (r1232336; 2012-12-18 14:36:37-0500) Maven home: /usr/share/java/apache-maven-3.0.4 Java version: 1.7.0_71, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "2.6.32-504.el6.x86_64", arch: "i386", family: "unix" * Once logged $OPENSHIFT_DATA_DIR * References DIY cartridge: https://developers.openshift.com/en/diy-overview.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.