Code Monkey home page Code Monkey logo

cimticketsanalyse's Introduction

Build Status Github Actions build Coverage Status Pharo version Pharo version

CIMTicketsAnalyse

To lead the project in a clean pharo image:

 Metacello new
    	githubUser: 'mahugnon' project: 'CIMTicketsAnalyse' commitish: 'main' path: 'src';
    	baseline: 'CIMTicketsAnalyse';
	 onConflict: [ :e | e useIncoming ];
        onUpgrade: [ :e | e useIncoming ];
        
    	load

Installation on linux server without gui (headless)

  • Clone the repository in the server
  • Copy and paste the following script or navigate into the project directory and run chmod 777 runCentOS8.sh && ./runCentOS8.sh
#!/usr/bin/env bash
set -vx
export path_to_pharo=~/cimdashboard/app
export pharo_version=70
export pharo_headless_server="$path_to_pharo/pharo-vm/pharo -vm-display-null -vm-sound-null --memory 512m"

# Make sure the installation directory is empty
rm -rf $path_to_pharo
mkdir -p $path_to_pharo
cd $path_to_pharo

#Close all screen named dashboard
#screen -S ticketsDashboard -X quit

# Download pharo with vm
curl get.pharo.org/64/$pharo_version+vm | bash

# Rename image as TicketsDashboard
./pharo Pharo.image save TicketsDashboard

# load the project baseline and save it
./pharo TicketsDashboard.image eval --save "Metacello new
    	githubUser: 'mahugnon' project: 'CIMTicketsAnalyse' commitish: 'master' path: 'src';
    	baseline: 'CIMTicketsAnalyse';
	 onConflict: [ :e | e useIncoming ];
        onUpgrade: [ :e | e useIncoming ];
        
    	load"
# Prepare the image for production
./pharo  TicketsDashboard.image eval --save "WAAdmin clearAll.
WAAdmin applicationDefaults removeParent:
WADevelopmentConfiguration instance.
WAFileHandler default: WAFileHandler new.
WAFileHandler default
preferenceAt: #fileHandlerListingClass
put: WAHtmlFileHandlerListing.
WAAdmin defaultDispatcher
register: WAFileHandler default
at: 'files'"
   
# Run the image in a virtual screen
# Set up the scheduler to load data from database once per month
# Set default server port
$pharo_headless_server TicketsDashboard.image eval --no-quit 'CIMDatabase scheduleUpdate
(ZnServer defaultOn: 8792) start' &

cimticketsanalyse's People

Contributors

mahugnon avatar

Stargazers

 avatar  avatar

Watchers

 avatar

cimticketsanalyse's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.