Big refactor of db

This commit is contained in:
Fergal Moran
2018-05-12 12:01:00 +01:00
parent 7a72ee54e5
commit 57e300b111
4 changed files with 7 additions and 15 deletions

View File

@@ -14,4 +14,4 @@
</div>
<app-footer *ngIf="loggedIn()"></app-footer>
<ng2-toasty [position]="'top-right'"></ng2-toasty>
<app-chat-widget *ngIf="loggedIn()"></app-chat-widget>
<app-chat-widget *ngIf="loggedIn() && !isProduction"></app-chat-widget>

View File

@@ -12,6 +12,7 @@ import { ApplicationState } from 'app/store';
import * as fromProfile from 'app/reducers';
import * as fromProfileActions from 'app/actions/profile.actions';
import { NgcCookieConsentService } from 'ngx-cookieconsent';
import { environment } from 'environments/environment';
@Component({
selector: 'app-root',
@@ -21,6 +22,8 @@ import { NgcCookieConsentService } from 'ngx-cookieconsent';
export class AppComponent implements OnInit {
sidebarOpen: boolean = true;
overlayOpen: boolean = false;
isProduction = environment.production;
constructor(
private _authService: PodnomsAuthService,
private _store: Store<ApplicationState>,

View File

@@ -1,2 +1,3 @@
bin\
obj\
obj\
.working/

View File

@@ -19,19 +19,7 @@ WORKDIR /app
RUN dotnet publish -c Release -o out
FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine AS runtime
WORKDIR /app
FROM fergalmoran/podnoms.alpine.base AS runtime
COPY --from=publish /app/out ./
# ln -s /usr/lib/libuv.so.1 /usr/lib/libuv.so && \
RUN apk add --no-cache --update \
python \
ffmpeg \
libuv \
curl \
curl-dev && \
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && \
chmod a+rx /usr/local/bin/youtube-dl && \
youtube-dl -U
ENTRYPOINT ["dotnet", "PodNoms.Api.dll"]