Go to Rocket.Chat Wiki to get more information https://github.com/RocketChat/Rocket.Chat/wiki/Deploy-Rocket.Chat-without-docker?ts=2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node --version v18.16.0 | |
import deasync from 'deasync'; | |
import fetch from 'node-fetch'; | |
function deasyncPromise(fn) { | |
return (...args) => { | |
return deasync((cb) => fn(...args).then((r) => cb(undefined, r)).catch(cb))(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ab2str(buf) { | |
return String.fromCharCode.apply(null, new Uint16Array(buf)); | |
} | |
function str2ab(str) { | |
var buf = new ArrayBuffer(str.length * 2); // 2 bytes for each char | |
var bufView = new Uint16Array(buf); | |
for (var i = 0, strLen = str.length; i < strLen; i++) { | |
bufView[i] = str.charCodeAt(i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Terminal 1 | |
docker exec -it CONTAINER_ID /bin/bash | |
npm install node-inspector | |
kill -s USR1 PROCESS_ID | |
node_modules/node-inspector/bin/inspector.js --web-port=9000 | |
# Terminal 2 | |
docker exec -it CONTAINER_ID /bin/bash | |
curl -O https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tar.gz | |
tar -xvzf ngrok-stable-linux-amd64.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// USAGE | |
// pr.js <pr_number> | |
const https = require('https'); | |
const _execSync = require('child_process').execSync; | |
function execSync(command) { | |
console.log(command); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Alexandre Zia | |
Credits: | |
This script adds functionality to the original code | |
Original code from: Jonathan Gotti (malko) : https://github.com/malko/rocketchat-jira-hook/blob/master/jira-rocketchat-hook.js | |
*/ | |
/*jshint esnext:true*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"Aracajú", | |
"Belém", | |
"Belo Horizonte", | |
"Boa Vista", | |
"Brasília", | |
"Campo Grande", | |
"Cuiabá", | |
"Curitiba", | |
"Florianópolis", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vamos criar a pasta packages dentro das aplicações | |
mkdir -p mpp-application-1/packages | |
mkdir -p mpp-application-2/packages | |
# Vamos criar o link do pacote dentro das pastas packages | |
ln -s $(pwd)/mpp-session-log $(pwd)/mpp-application-1/packages/ | |
ln -s $(pwd)/mpp-session-log $(pwd)/mpp-application-2/packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Meteor.startup executa nosso código assim que o DOM estiver pronto | |
// É garantido que os Meteor.startup dos pacotes serão executados | |
// antes dos definidos nas aplicações | |
Meteor.startup(function() { | |
// Salva a função original do Session.set | |
var originalSessionSet = Session.set; | |
// Definie um novo Session.set | |
Session.set = function(key, value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api.addFiles('mpp-session-log.js', ['client']); |
NewerOlder