Skip to content

Commit 873c3cf

Browse files
chore(website): move to heroku
1 parent 900853a commit 873c3cf

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,9 @@ after_success:
3535
fi
3636
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
3737
printf "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" > ~/.npmrc
38-
npm install --no-save [email protected] now
38+
npm install --no-save [email protected]
3939
npm run release
4040
fi
41-
if [[ $TRAVIS_BRANCH == 'master' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
42-
now ./packages/overmind-website --token $NOW_TOKEN && now alias overmindjs.org --token $NOW_TOKEN
43-
fi
44-
if [[ $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
45-
now ./packages/overmind-website --token $NOW_TOKEN && now alias next.overmindjs.org --token $NOW_TOKEN
46-
fi
4741
branches:
4842
except:
4943
- "/^v\\d+\\.\\d+\\.\\d+$/"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "1.0.0",
55
"license": "MIT",
66
"scripts": {
7+
"start": "node packages/overmind-website/backend/index.js",
78
"build": "repo-cooker --build",
89
"checkdeps": "repo-cooker --check-dependencies",
910
"commit": "git-cz",
@@ -14,7 +15,6 @@
1415
"link": "repo-cooker --link",
1516
"lint": "eslint \"**/*.js\" \"**/*.ts\"",
1617
"precommit": "lint-staged",
17-
"release": "repo-cooker --release",
1818
"test": "repo-cooker test"
1919
},
2020
"repository": {

packages/overmind-website/backend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ app.get('/backend/search', (req, res) => {
121121
})
122122
app.get('/*', (_, res) => res.sendFile(path.resolve('dist', 'index.html')))
123123

124-
app.listen(5000, () => console.log('Example app listening on port 5000!'))
124+
app.listen(process.env.PORT || 5000, () => console.log('Server started!'))

0 commit comments

Comments
 (0)