Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Muhammad Farhan Thariq
web
Commits
2d2d2f05
Commit
2d2d2f05
authored
4 years ago
by
Muhammad Farhan Thariq
Browse files
Options
Downloads
Patches
Plain Diff
initial commit
parent
380eb9cf
No related branches found
No related tags found
No related merge requests found
Pipeline
#56885
failed
4 years ago
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+40
-0
40 additions, 0 deletions
.gitlab-ci.yml
Procfile
+2
-0
2 additions, 0 deletions
Procfile
with
42 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
40
−
0
View file @
2d2d2f05
stages
:
-
test
-
deploy
# Uncomment these lines if you would use tdd using selenium in your project
# UnitTest:
# image: python:3.6
# stage: test
# before_script:
# - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
# - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
# - pip install -r requirements.txt
# - python manage.py makemigrations
# - python manage.py migrate
# - apt-get update -qq && apt-get install -y -qq unzip
# - apt-get install -y google-chrome-stable
# - apt-get install -y xvfb
# - wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
# - unzip chromedriver_linux64.zip
# - python manage.py collectstatic --no-input
# - python manage.py runserver 8000 &
# when: on_success
# script:
# - coverage run manage.py test
# - coverage report -m
Deployment
:
image
:
ruby:2.4
stage
:
deploy
before_script
:
-
gem install dpl
-
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
script
:
-
dpl --provider=heroku --app=$HEROKU_APPNAME --api-key=$HEROKU_APIKEY
-
export HEROKU_API_KEY=$HEROKU_APIKEY
-
heroku run --app $HEROKU_APPNAME python manage.py migrate
environment
:
name
:
production
url
:
$HEROKU_APP_HOST
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Procfile
0 → 100644
+
2
−
0
View file @
2d2d2f05
migrate: bash python manage.py migrate
web: gunicorn my_app.wsgi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment