Create required dirs:
mkdir ~/.pow # where play will register the http.port
mkdir ~/.nginx-sites # where pow will create proxy configs
Tell nginx to load sites config from your ~/.nginx-sites
by adding this to /etc/nginx.conf
:
module Dnd (..) where | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import StartApp.Simple exposing (start) | |
import Signal exposing (message, Address) | |
import Json.Decode | |
module Main where | |
import Combine exposing (Parser, string, parse, end, andThen, many1, while, many, skip, Result (..)) | |
import Combine.Char exposing (noneOf, char) | |
import Combine.Num exposing (int) | |
import Combine.Infix exposing ((<$>), (<$), (<*), (*>), (<*>), (<|>)) | |
import Maybe exposing (Maybe) | |
import History exposing (path, setPath) | |
import Signal exposing (Signal, (<~), (~), send, message) | |
import Effects exposing (Effects, task) |
{ | |
"Basic Types" : { | |
"uid" : { | |
"type" : "UID", | |
"config" : { | |
"placeholder" : "Unique Document Identifier" | |
} | |
}, | |
"text" : { | |
"type" : "Text", |
(defvar workgroups2-packages | |
'( | |
workgroups2 | |
) | |
"List of all packages to install and/or initialize. Built-in packages | |
which require an initialization must be listed explicitly in the list.") | |
(defun workgroups2/init-workgroups2 () | |
(use-package workgroups2 | |
:init |
Create required dirs:
mkdir ~/.pow # where play will register the http.port
mkdir ~/.nginx-sites # where pow will create proxy configs
Tell nginx to load sites config from your ~/.nginx-sites
by adding this to /etc/nginx.conf
:
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
require 'thread' | |
require 'thread_safe' | |
require 'monitor' | |
module Mongoid | |
def with_session(&block) | |
Sessions.with_session(&block) | |
end | |
module Config | |
option :session_pool_size, :default => 5 |
package foo.bar | |
import spray.routing._ | |
import spray.http._ | |
import spray.http.StatusCodes.Forbidden | |
// See https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS | |
case class Origin(origin: String) extends HttpHeader { |
require 'queue' | |
# Simplified version of the pooling from datamapper's data_objects. | |
# https://github.com/datamapper/do/blob/master/data_objects/lib/data_objects/pooling.rb | |
class Moped::Session | |
class << self | |
alias new __new | |
end | |
@__pool_lock = Mutex.new |
require 'queue' | |
module Rack | |
module Mongoid | |
module Middleware | |
class Sessions | |
def initialize(app) | |
@app = app | |
@sessions = Queue.new |