This file contains 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
[Unit] | |
Description=FleetUI | |
After=docker.service | |
[Service] | |
User=core | |
TimeoutStartSec=20m | |
EnvironmentFile=/etc/environment | |
ExecStartPre=-/usr/bin/docker kill fleet-ui | |
ExecStartPre=-/usr/bin/docker rm fleet-ui |
This file contains 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
# encoding: utf-8 | |
class ImageUploader < CarrierWave::Uploader::Base | |
# Include RMagick or MiniMagick support: | |
# include CarrierWave::RMagick | |
include CarrierWave::MiniMagick | |
include CarrierWaveDirect::Uploader | |
# process :set_content_type |
This file contains 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
# set_default(:postgresql_host, "localhost") | |
# set_default(:postgresql_user) { application } | |
# set_default(:postgresql_password) { Capistrano::CLI.password_prompt "PostgreSQL Password: " } | |
# set_default(:postgresql_database) { "#{application}_production" } | |
namespace :postgresql do | |
# desc "Create a database for this application." | |
# task :create_database, roles: :db, only: {primary: true} do | |
# run %Q{#{sudo} -u postgres psql -c "create user #{postgresql_user} with password '#{postgresql_password}';"} | |
# run %Q{#{sudo} -u postgres psql -c "create database #{postgresql_database} owner #{postgresql_user};"} |
This file contains 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
############################################################################## | |
# | |
# Author: Egbert Pot | WebOak | www.weboak.nl | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
NewerOlder