mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
fix copying file assets, and publish them
This commit is contained in:
parent
8fe6d10887
commit
529d4fa6d9
5 changed files with 5 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -6,3 +6,5 @@ public/blog
|
|||
public/proj
|
||||
node_modules
|
||||
public/s42/.htaccess
|
||||
public/images/blog
|
||||
public/f
|
||||
|
|
|
|||
1
Makefile
1
Makefile
|
|
@ -27,6 +27,7 @@ publish_assets: combine
|
|||
publish_blog: blog publish_assets
|
||||
@echo
|
||||
./bin/publish.sh --delete public/blog
|
||||
./bin/publish.sh public/f
|
||||
scp public/blog/posts.json bohodev.net:discussd/posts.json
|
||||
scp discussd/discussd.js bohodev.net:discussd/discussd.js
|
||||
scp public/s42/.htaccess samhuri.net:s42.ca/.htaccess
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class Blag
|
|||
code = shorten(i + 1)
|
||||
htaccess << "RewriteRule ^#{code}$ #{post[:url]} [R=301,L]"
|
||||
end
|
||||
File.open(File.join(@dest, 's4,', '.htaccess'), 'w') do |f|
|
||||
File.open(File.join(@dest, 's42', '.htaccess'), 'w') do |f|
|
||||
f.puts(htaccess)
|
||||
end
|
||||
end
|
||||
|
|
@ -125,7 +125,7 @@ class Blag
|
|||
FileUtils.copy(file, File.join(@dest, 'f', File.basename(file)))
|
||||
end
|
||||
Dir[File.join(@src, 'images', '*')].each do |file|
|
||||
FileUtils.copy(file, File.join(@dest, 'images', File.basename(file)))
|
||||
FileUtils.copy(file, File.join(@dest, 'images', 'blog', File.basename(file)))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
0
public/f/.gitkeep
Normal file
0
public/f/.gitkeep
Normal file
0
public/images/blog/.gitkeep
Normal file
0
public/images/blog/.gitkeep
Normal file
Loading…
Reference in a new issue