-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #541 from sozialhelden/feature/infra-rebuild-syncing
Integrate with make_osc & deploy on osm-database
- Loading branch information
Showing
4 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ SHAPE_FILE = "#{VAR_DIR}/shapes.osc".freeze | |
STATE_FILE = "#{WORKING_DIR}/state.txt".freeze | ||
BACKUP_FILE = "#{WORKING_DIR}/state.old".freeze | ||
DOWNLOAD_LOCK = "#{WORKING_DIR}/download.lock".freeze | ||
MAKE_OSC_DIR = "/var/apps/make_osc/".freeze | ||
|
||
require 'rake' | ||
|
||
|
@@ -54,9 +55,8 @@ def get_new_replication_file | |
end | ||
|
||
def get_new_shape_replication_files | ||
puts 'INFO: Fetching shape changes.' | ||
system "ssh -p 22022 [email protected] \"ruby make_osc.rb -d\" 2> /dev/null >> #{SHAPE_FILE}" | ||
puts "INFO: Downloaded #{File.size(SHAPE_FILE)} bytes" | ||
puts "INFO: Fetching shape changes." | ||
system "BUNDLE_GEMFILE=#{MAKE_OSC_DIR}/Gemfile bundle exec #{MAKE_OSC_DIR}/make_osc.rb -d >> #{SHAPE_FILE}" | ||
end | ||
|
||
def merge_replication_files | ||
|