Skip to content

Instantly share code, notes, and snippets.

DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=172.24.4.10
GATEWAY=172.24.4.1
DNS1=172.24.4.1
NETMASK=255.255.255.240
ONBOOT=yes
➜ my_store bundle
Using rake (10.3.0)
Using Ascii85 (1.0.2)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.9.2)
Using thread_safe (0.3.3)
Using tzinfo (0.3.39)
Using activesupport (4.0.4)
Using builder (3.1.4)
<p id="notice"><%= notice %></p>
<p>
<strong>Name:</strong>
<%= @project.name %>
</p>
<%= @project.item.content %>
<%= link_to 'Edit', edit_project_path(@project) %> |
@brylor
brylor / fabfile
Last active August 29, 2015 14:04
import time
from fabric.api import *
env.hosts = ['ubuntu@test-server-01:22']
env.roledefs = {"test":["test-server-01"],
"production":["production-server"]}
@roles("test")
import time
from fabric.api import *
#env.hosts = ['ubuntu@chef-server-01:22']
env.roledefs = {"test":["chef-client-01"],
"production":["production-server"]}
@roles("test")
import time
from fabric.api import *
env.roledefs = {"test":["test-server-01"],
"production":["production-server"]}
def deploy():
code_dir = '/var/www/html/RTV2'
__author__ = 'hypnosb'
import os
from base import *
from testing import *
#ENVIRONMENT = os.getenv("DJANGO_ENVIRONMENT")
ENVIRONMENT='development'
if ENVIRONMENT == "production":
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
commands = get_commands()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 107, in get_commands
#!/bin/sh
cd /var/www/html/rtv2
git checkout master
git pull origin master
import os
from base import *
#ENVIRON = os.getenv("DJANGO_ENVIRONMENT")
ENVIRON = "develop"
if ENVIRON == "develop":
from develop import *
elif ENVIRON == "staging":