Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script directory and and build and server scripts to upload. #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
version: '3'
services:
compile: &default
build: .
command: bundle exec nanoc compile
volumes:
- .:/usr/src/ros

compilewatch:
<<: *default
build: .
command: bundle exec nanoc compile -W
volumes:
Expand Down
3 changes: 3 additions & 0 deletions script/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

exec docker-compose run compile
3 changes: 3 additions & 0 deletions script/server
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

exec docker-compose up
2 changes: 1 addition & 1 deletion upload.bash → script/upload
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash


rsync -av --delete output/ ros1.osuosl.org:/var/www/beta.ros.org --exclude .well-known
rsync -av --delete output/ ros1.osuosl.org:/var/www/beta.ros.org --exclude .well-known