before_script: - apt-get update -qq - apt-get install -qq git # Setup SSH deploy keys - 'which ssh-agent || ( apt-get install -qq openssh-client )' - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY_BASE64" | base64 -d) # - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' deploy_development: environment: name: development url: app.bayadic.com script: # - ssh root@server1.bayadic.com "sh -c 'cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && sudo kill -9 `sudo lsof -t -i:8100` && ionic serve --address=0.0.0.0 --port=8100 --disableHostCheck' && exit" # - ssh root@server1.bayadic.com "sh -c 'cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && sudo kill -9 `sudo lsof -t -i:8100` && nohup ionic serve --address=0.0.0.0 --port=8100 --disableHostCheck &' && exit" # - ssh root@server1.bayadic.com "cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && sudo kill -9 `sudo lsof -t -i:8100` && nohup ionic serve --address=0.0.0.0 --port=8100 --disableHostCheck & exit" # - ssh root@server1.bayadic.com "kill -9 `/usr/sbin/lsof -t -i:8100` && exit" # - ssh root@server1.bayadic.com "fuser -k 8100/tcp && exit" # - ssh root@server1.bayadic.com "cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && kill -9 `lsof -t -i:8100` && nohup ionic serve --address=0.0.0.0 --port=8100 --disableHostCheck & exit" # - ssh root@server1.bayadic.com "fuser -k 8100/tcp && cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && nohup ionic serve --address=0.0.0.0 --port=8100 --disableHostCheck &" # - ssh root@server1.bayadic.com "fuser -k 8100/tcp && sh -c 'cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && nohup ionic serve --address=0.0.0.0 --port=8100 --disableHostCheck &' && exit'" # - ssh root@server1.bayadic.com "cd /var/www/html/bayadic-app/bayadic-v3 && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && systemctl restart bayadicapp && exit" - ssh root@server1.bayadic.com "source ~/.nvm/nvm.sh && nvm use v16.14.2 && cd /var/www/html/bayadic-app/bayadic-v3/ && git checkout . && git checkout feature/DEVELOPMENT && git pull origin feature/DEVELOPMENT && nohup ionic build --prod && cp -rf /var/www/html/bayadic-app/bayadic-v3/www/ /var/www/html/bayadic-app/dev/bayadic-v3/ && exit" only: - feature/DEVELOPMENT deploy_production: environment: name: staging url: app.bayadic.com script: - ssh root@server1.bayadic.com "source ~/.nvm/nvm.sh && nvm use v16.14.2 && cd /var/www/html/bayadic-app/bayadic-v3/ && git checkout . && git checkout master && git pull origin master && git submodule update --init --recursive && nohup ionic build --prod && cp -rf /var/www/html/bayadic-app/bayadic-v3/www/ /var/www/html/bayadic-app/prod/bayadic-v3/ && exit" only: - master
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.angular | Folder | 0755 |
|
|
.git | Folder | 0755 |
|
|
docker-images | Folder | 0755 |
|
|
e2e | Folder | 0755 |
|
|
node_modules | Folder | 0755 |
|
|
resources | Folder | 0755 |
|
|
src | Folder | 0755 |
|
|
tests | Folder | 0755 |
|
|
.eslintrc.json | File | 1.04 KB | 0644 |
|
.gitignore | File | 1.05 KB | 0644 |
|
.gitlab-ci.yml | File | 3.2 KB | 0644 |
|
.gitmodules | File | 129 B | 0644 |
|
Bayadic-Info.plist | File | 7.68 KB | 0644 |
|
LICENSE | File | 1.92 KB | 0644 |
|
angular.json | File | 4.13 KB | 0644 |
|
browserslist | File | 536 B | 0644 |
|
build-tasks | File | 584 B | 0644 |
|
capacitor.config.json | File | 3 B | 0644 |
|
capacitor.config.ts | File | 228 B | 0644 |
|
config.xml | File | 8.1 KB | 0644 |
|
docker-compose.yml | File | 263 B | 0644 |
|
google-services.json | File | 1.64 KB | 0644 |
|
ionic.config.json | File | 93 B | 0644 |
|
jest.config.js | File | 214 B | 0644 |
|
karma.conf.js | File | 1.39 KB | 0644 |
|
nohup.out | File | 9.23 KB | 0600 |
|
old_permissions.txt | File | 238 B | 0644 |
|
package-lock.json | File | 900.86 KB | 0644 |
|
package.json | File | 5.02 KB | 0644 |
|
remake.sh | File | 53 B | 0755 |
|
remove_permissions.js | File | 701 B | 0644 |
|
setup-jest.ts | File | 41 B | 0644 |
|
speed-notes | File | 3.71 KB | 0644 |
|
tsconfig.app.json | File | 349 B | 0644 |
|
tsconfig.json | File | 986 B | 0644 |
|
tsconfig.spec.json | File | 234 B | 0644 |
|
tslint.json | File | 1.8 KB | 0644 |
|