This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:
- Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
- Windows 10 on my PC to work.
| public class MyDbContext : DbContext | |
| { | |
| private ITenantIdLocator tenantIdLocator; | |
| public MyDbContext(ITenantIdLocator tenantIdLocator) | |
| { | |
| if (tenantIdLocator == null) throw new ArgumentNullException(nameof(tenantIdLocator)); | |
| this.tenantId = tenantIdLocator.GetTenantId(); | |
| } | |
| CarrierWave.configure do |config| | |
| if Rails.env.test? || Rails.env.cucumber? | |
| config.storage = :file | |
| config.enable_processing = false | |
| else | |
| config.asset_host = Rails.application.secrets.asset_host | |
| config.fog_provider = 'fog/openstack' | |
| config.fog_credentials = { | |
| provider: 'OpenStack', | |
| openstack_auth_url: 'https://api.selcdn.ru/v3', |
| // | |
| // Countdown.cs | |
| // Created by Alexey Kinev on 11 Jan 2015. | |
| // | |
| // Licensed under The MIT License (MIT) | |
| // http://opensource.org/licenses/MIT | |
| // | |
| // Copyright (c) 2015 Alexey Kinev <[email protected]> | |
| // | |
| using System; |
| using System; | |
| using MonoTouch.UIKit; | |
| namespace System | |
| { | |
| public static class ExtensionMethods | |
| { | |
| public static UIColor ToUIColor(this string hexString) | |
| { | |
| hexString = hexString.Replace("#", ""); |
Copy this gist and customise it to your liking.
| $ redis-cli | |
| > config set stop-writes-on-bgsave-error no |