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
root@deployServer:~# salt \* state.highstate --output=summary_highstate | |
web-server01.example.com ------------------ Success: 20 Changed: 0 Errors: 0 | |
web-server02.example.com ------------------ Success: 71 Changed: 1 Errors: 0 | |
db-server03.example.com ------------------- Success: 73 Changed: 1 Errors: 0 | |
mongo-server04.example.com ---------------- Success: 74 Changed: 1 Errors: 0 | |
mongo-server05.example.com ---------------- Success: 74 Changed: 1 Errors: 0 | |
memcache-server06.example.com ------------- Success: 74 Changed: 1 Errors: 0 | |
mysql-server07.example.com ---------------- Success: 74 Changed: 1 Errors: 0 | |
logs-server08.example.com ----------------- Success: 20 Changed: 0 Errors: 0 | |
redis-server09.example.com ---------------- Success: 27 Changed: 0 Errors: 0 |
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
server { | |
server_name pgadmin.example.com; # Make sure to create a DNS record that refers to your droplet | |
root /home/deploy/phppgadmin; | |
allow 123.123.123.123; # Limit access based on IP | |
deny all; | |
location / { | |
index index.php; | |
try_files $uri $uri/ /index.php; # http://wiki.nginx.org/Pitfalls#Check_IF_File_Exists | |
} |
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
<?php | |
namespace Acme\DemoBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Security\Core\Role\SwitchUserRole; |