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

Tutorial request on deployment on DigitalOcean #531

Closed
shinokada opened this issue Jan 28, 2018 · 7 comments
Closed

Tutorial request on deployment on DigitalOcean #531

shinokada opened this issue Jan 28, 2018 · 7 comments
Assignees

Comments

@shinokada
Copy link

I just wanted to request a tutorial or doc page on deployment especially DigitalOcean.

@pierreburgy
Copy link
Member

Good suggestion @shinokada! This is in our plans: we are going to publish an article (https://blog.strapi.io/p/cd1ad84c-1ca5-409d-be05-fb06bca4e8c5/) and add it in the documentation this week.

@shinokada
Copy link
Author

shinokada commented Jan 28, 2018

Great! The blog article, Building a static blog using Gatsby and Strapi was very useful for me. I'd like to see using a slug for a URL.

In the new blog, it says,

Import the public key:

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

Is this correct? 0C49F3730359A14518585931BC711F9BA15703C6 should be different for each laptop?

@ArkhipovK
Copy link
Contributor

Are there any changes in heroku variant?

@pierreburgy
Copy link
Member

@shinokada yes, it should work. Did you have any issue with that?

@ArkhipovK to use Heroku, you only need to set your database configuration in Heroku environment variables and update the port config in your Strapi project:

Path: config/environments/production/server.json:

{
  "host": "localhost",
  "port": "${process.env.PORT || 1337}",
  "autoReload": {
    "enabled": false
  },
  "cron": {
    "enabled": false
  }
}

Btw @Aurelsicoko, shouldn't we update the generators to set this value by default?

@ArkhipovK
Copy link
Contributor

ArkhipovK commented Jan 31, 2018

@pierreburgy thanks for reply, but what if i have pipe to heroku from bitbucket, and bitbucket repo does not include node_modules. So i suppose i have to run some command or script to rebuild them first. What is the proper action now?

@pierreburgy
Copy link
Member

@ArkhipovK Heroku will automatically detect that your app is a Node.js app and then, will install the node modules.

@pierreburgy
Copy link
Member

The tutorial has been published: https://medium.com/@strapi/how-to-deploy-a-strapi-api-on-ubuntu-16-04-17f8fbbf5c5b, so I am closing the issue.

Thanks again for your suggestion!

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

No branches or pull requests

4 participants