Skip to content

Instantly share code, notes, and snippets.

@roberto-filho
Last active August 29, 2015 14:08
Show Gist options
  • Save roberto-filho/ddc620f2a789e859421c to your computer and use it in GitHub Desktop.
Save roberto-filho/ddc620f2a789e859421c to your computer and use it in GitHub Desktop.
Script com os comandos para subir os serviços do trackr e da integração.
#!/bin/bash
# Subindo o trackr
cd /home/deploy/trackr/current
mina up
# Subindo interfaces web, para acessar de fora
cd /scripts
sudo sh em1.sh
sudo sh interfaces.sh
# Restartando o servidor do nginx
sudo service nginx restart
## Integração
# Startando o puma
bundle exec puma -e production -d -b unix:///home/deploy/integracao/shared/web.socket
# Startando foreman
cp /home/deploy/integracao/current/
foreman start
## Gerar token (Quando um novo cliente começa a usar o contas-integração)
bundle exec rails
APIKey.create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment