Last active
August 29, 2015 14:08
-
-
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.
This file contains hidden or 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
#!/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