Skip to content

Commit

Permalink
fixing deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
catherineisonline committed Apr 22, 2022
1 parent 6bfddd6 commit 3950368
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 4 deletions.
25 changes: 25 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd dist

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git main

# if you are deploying to https://<USERNAME>.github.io/<REPO>
# git push -f git@github.com:<USERNAME>/<REPO>.git main:gh-pages

cd -
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/png" sizes="32x32" href="/favicon.png"><title>Frontend Mentor Challenge Solutions</title><link href="/css/app.c25601de.css" rel="preload" as="style"><link href="/js/app.365c1c08.js" rel="preload" as="script"><link href="/js/chunk-vendors.e4229be5.js" rel="preload" as="script"><link href="/css/app.c25601de.css" rel="stylesheet"></head><body><div id="app"></div><script src="/js/chunk-vendors.e4229be5.js"></script><script src="/js/app.365c1c08.js"></script></body></html>
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/png" sizes="32x32" href="/frontend-mentor-challenge-solutions/favicon.png"><title>Frontend Mentor Challenge Solutions</title><link href="/frontend-mentor-challenge-solutions/css/app.c25601de.css" rel="preload" as="style"><link href="/frontend-mentor-challenge-solutions/js/app.50b13802.js" rel="preload" as="script"><link href="/frontend-mentor-challenge-solutions/js/chunk-vendors.e4229be5.js" rel="preload" as="script"><link href="/frontend-mentor-challenge-solutions/css/app.c25601de.css" rel="stylesheet"></head><body><div id="app"></div><script src="/frontend-mentor-challenge-solutions/js/chunk-vendors.e4229be5.js"></script><script src="/frontend-mentor-challenge-solutions/js/app.50b13802.js"></script></body></html>
2 changes: 0 additions & 2 deletions dist/js/app.365c1c08.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/app.365c1c08.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions dist/js/app.50b13802.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/app.50b13802.js.map

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"core-js": "^3.6.5",
"gh-pages": "^3.2.3",
"sass": "^1.50.1",
"travis-cli": "^1.0.9",
"vue": "^2.6.11"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// vue.config.js file to be placed in the root of your repository

module.exports = {
publicPath: process.env.NODE_ENV === "production" ? "/frontend-mentor-challenge-solutions" : "/",
};

0 comments on commit 3950368

Please sign in to comment.