Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #732: Create an automatic deployment of development branch on surge #737

Merged
merged 1 commit into from Jun 11, 2018

Conversation

simsausaurabh
Copy link
Member

@simsausaurabh simsausaurabh commented Jun 2, 2018

Changes proposed in this pull request

  • Created an automatic deployment of development branch on surge through travis.

Screenshots (if appropriate) Not applicable.

Link to live demo: http://pr-737-fossasia-loklaksearch.surge.sh

development branch deployment link: https://development-test-loklaksearch.surge.sh/

Closes #732

@codecov
Copy link

codecov bot commented Jun 2, 2018

Codecov Report

Merging #737 into development will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           development     #737   +/-   ##
============================================
  Coverage        52.34%   52.34%           
============================================
  Files               97       97           
  Lines             2470     2470           
  Branches           271      271           
============================================
  Hits              1293     1293           
  Misses            1150     1150           
  Partials            27       27

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b30a3ce...0689503. Read the comment docs.

@simsausaurabh
Copy link
Member Author

simsausaurabh commented Jun 2, 2018


export SURGE_LOGIN=test@example.co.in
# Token of a dummy account.
export SURGE_TOKEN=d1c28a7a75967cc2b4c852cca0d12206
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a bad idea. These tokens (new generated ones) should go into the travis environment variables on travis' CI and shouldn't be publicly exposed in any of the files. You need to encrypt these tokens before they're merged to maintain security.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The surge tokens were already used in this project previously. I am not sure about encrypting though. It is publicly available on fossasia's blog post(https://blog.fossasia.org/installing-the-loklak-search-and-deploying-it-to-surge). There might be a method to not to share this token, but it requires access to repo. Or someone with right access would have to push travis yml configuration on respective travis account. For more info please see: https://docs.travis-ci.com/user/deployment/surge/

Please guide me further.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudheesh001 please review.

@praveenojha33
Copy link
Member

@simsausaurabh Will it be a good idea to use surge for deployment of development branch? Currently I am unable to open features like Media Wall etc on surge.
image

@simsausaurabh
Copy link
Member Author

@praveenojha33 I am currently looking for how to handle routes on spa hosted on surge, since it does not get automatically handled. I mean when we hit refresh Error is shown Something like 404.html in gh-pages and media-wall-component is also not accessible on surge. If not possible I'll go on with deploying development on heroku and keeping master on gh-pages, after discussing with mentors.

@mariobehling
Copy link
Member

It is sufficient if it works after accessing the site from the main page.

Copy link
Member

@singhpratyush singhpratyush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving.

We can test this for a few days to assure proper functioning and make changes if needed.

@mariobehling mariobehling merged commit 2164e70 into fossasia:development Jun 11, 2018
@simsausaurabh simsausaurabh deleted the deploy branch June 11, 2018 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants