Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Deploy: First time (staging) setup issues #27

Open
dgrdl opened this issue Feb 28, 2017 · 2 comments
Open

Deploy: First time (staging) setup issues #27

dgrdl opened this issue Feb 28, 2017 · 2 comments

Comments

@dgrdl
Copy link
Contributor

dgrdl commented Feb 28, 2017

When setting up a project, the .env and web/.htaccess files (among others) are excluded from deployment by default, which leads to the need for manual setup on the server. That entails:

  • creating a .env file / copying the existing from local and adjusting it
  • logging into the backend via your-website.domain/wp/wp-admin and opening the permalinks page

I'm not sure if there is a nicer way, but maybe we could (optionally) deploy once after the create task has finished? This step could then take care of creating the .env file and flushing the rewrite rules.

The annoying thing would be the increase in prompts you have to go through (but you need to go through these anyways with our workflow).

@domtra
Copy link
Member

domtra commented Jun 7, 2017

this is purely optional to deploy to a staging server. i also do not want to have a command, that if you run it accidentally, will delete something you have set up on a remote server (could be production as well).

we could though make more use of the cli, also on staging. this way it would only work, if the .env does not exist.

my plan is to make use of wp cli more anyway. also getting rid of search-and-replace-db. but for that we have to change a couple of things and add a way to setup wp cli on a remote server if it is not present. I have some ideas, but would not prioritize them for the initial release

@domtra domtra added the on hold label Jun 7, 2017
@bdbch
Copy link
Contributor

bdbch commented Apr 18, 2018

i also do not want to have a command, that if you run it accidentally, will delete something you have set up on a remote server (could be production as well).

agree, did this once accidentally via flynt deploy with a wrong dir setup in flynt.json.

After setting up multiple flynt websites the initial setup became less and less annoying with each project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants