docker-compose exec -T <mongodb_service_name> mongodump --archive --gzip --db <mongodb_database> > dump.gz
docker-compose exec -T mongorestore --archive --gzip < dump.gz
Hosting | |
We provide hosting for our own built websites on our preferred hosting provider <hosting provider name>. | |
Based on their SLA we endeavor to have 99.9% uptime on our servers measured annually. | |
There may of course be times when the server will not be available, this can be scheduled or unscheduled. | |
Scheduled downtime is when we know it is going to happen and tell you about it in advance. Scheduled downtime will wherever possible, almost certainly be outside of normal office hours. We’ll do our stuff in the evening or at weekend to minimize impact on your business. | |
There may be very rare occasions when we need to restart the server during normal office hours and it is not possible to inform you before hand. We don’t make these decisions lightly and if this does happen we apologise. |
class API::V1::BaseController < ApplicationController | |
skip_before_filter :verify_authenticity_token | |
before_filter :cors_preflight_check | |
after_filter :cors_set_access_control_headers | |
def cors_set_access_control_headers | |
headers['Access-Control-Allow-Origin'] = '*' | |
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |
# config/deploy.rb | |
# probably a lot of ways to improve this... | |
set :application, 'my_app' | |
set :repo_url, '[email protected]:USERNAME/my_app.git' | |
# should set up a deploy user | |
set :user, 'deploy' | |
set :deploy_to, '/var/www/my_app' | |
set :scm, :git |
For this to work you will need to install the Advanced Rest Client for some of these steps. Of course you will need to install OAuth2orize as well.
Run the oauth2orize provider/server example which does server-side OAuth flow:
cd oauth2orize\examples\express2
node app.js