Skip to content

Commit

Permalink
Testing sqlite hacking in deploy script #49
Browse files Browse the repository at this point in the history
  • Loading branch information
bpjohannessen committed Jun 29, 2017
1 parent e2fa843 commit e5c741f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions MuscleWeb/MuscleWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ItemGroup>
<Folder Include="wwwroot\" />
<None Include="database.sql" CopyToPublishDirectory="Always" />
<None Include="sql.sh" CopyToPublishDirectory="Always" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
Expand Down
13 changes: 13 additions & 0 deletions sql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cd /home/bp/www/fettenajs.com/public_html/med/publish
sqlite3 muscles.db '
delete from musclesearch;
insert into musclesearch
select
id,
lat_name,
name,
origo,
insertio,
functio
from
tbl_muscles;'

0 comments on commit e5c741f

Please sign in to comment.